LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, shape, bit_mask_value, mask_threshold_dict={}, mask_map=[], no_good_pixels_mask=None, calc_error_from_input_variance=True, compute_n_image=False) |
def | add_masked_image (self, masked_image, weight=1.0) |
def | fill_stacked_masked_image (self, stacked_masked_image) |
def | add_image (self, image, weight=1.0) |
def | fill_stacked_image (self, stacked_image) |
Static Public Member Functions | |
def | stats_ctrl_to_threshold_dict (stats_ctrl) |
Stack masked images. Parameters ---------- shape : `tuple` Shape of the input and output images. bit_mask_value : `int` Bit mask to flag for "bad" inputs that should not be stacked. mask_threshold_dict : `dict` [`int`: `float`], optional Dictionary of mapping from bit number to threshold for flagging. Only bad bits (in bit_mask_value) which mask fractional weight greater than this threshold will be flagged in the output image. mask_map : `list` [`tuple`], optional Mapping from input image bits to aggregated coadd bits. no_good_pixels_mask : `int`, optional Bit mask to set when there are no good pixels in the stack. If not set then will set coadd masked image 'NO_DATA' bit. calc_error_from_input_variance : `bool`, optional Calculate the error from the input variance? compute_n_image : `bool`, optional Calculate the n_image map as well as stack?
Definition at line 28 of file accumulator_mean_stack.py.
def lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.__init__ | ( | self, | |
shape, | |||
bit_mask_value, | |||
mask_threshold_dict = {} , |
|||
mask_map = [] , |
|||
no_good_pixels_mask = None , |
|||
calc_error_from_input_variance = True , |
|||
compute_n_image = False |
|||
) |
Definition at line 51 of file accumulator_mean_stack.py.
def lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.add_image | ( | self, | |
image, | |||
weight = 1.0 |
|||
) |
Add an image to the stack. No bit-filtering is performed when adding an image. Parameters ---------- image : `lsst.afw.image.Image` Image to add to the stack. weight : `float` or `np.ndarray`, optional Weight to apply for weighted mean. If an array, must be same size and shape as input image.
Definition at line 179 of file accumulator_mean_stack.py.
def lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.add_masked_image | ( | self, | |
masked_image, | |||
weight = 1.0 |
|||
) |
Add a masked image to the stack. Parameters ---------- masked_image : `lsst.afw.image.MaskedImage` Masked image to add to the stack. weight : `float` or `np.ndarray`, optional Weight to apply for weighted mean. If an array, must be same size and shape as input masked_image.
Definition at line 93 of file accumulator_mean_stack.py.
def lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.fill_stacked_image | ( | self, | |
stacked_image | |||
) |
Fill the image after accumulation. Parameters ---------- stacked_image : `lsst.afw.image.Image` Total image.
Definition at line 198 of file accumulator_mean_stack.py.
def lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.fill_stacked_masked_image | ( | self, | |
stacked_masked_image | |||
) |
Fill the stacked mask image after accumulation. Parameters ---------- stacked_masked_image : `lsst.afw.image.MaskedImage` Total masked image.
Definition at line 128 of file accumulator_mean_stack.py.
|
static |
Convert stats control to threshold dict. Parameters ---------- stats_ctrl : `lsst.afw.math.StatisticsControl` Returns ------- threshold_dict : `dict` Dict mapping from bit to propagation threshold.
Definition at line 215 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.bit_mask_value |
Definition at line 57 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.calc_error_from_input_variance |
Definition at line 60 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.compute_n_image |
Definition at line 61 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.mask_map |
Definition at line 58 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.mask_threshold_dict |
Definition at line 64 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.masked_pixels_mask |
Definition at line 88 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.n_image |
Definition at line 91 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.no_good_pixels_mask |
Definition at line 59 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.or_mask |
Definition at line 83 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.rejected_weights_by_bit |
Definition at line 84 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.shape |
Definition at line 56 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.sum_w2var |
Definition at line 76 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.sum_wdata |
Definition at line 72 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.sum_wdata2 |
Definition at line 81 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.sum_weight |
Definition at line 70 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.sum_weight2 |
Definition at line 79 of file accumulator_mean_stack.py.