LSST Applications g0265f82a02+c6dfa2ddaf,g1162b98a3f+b2075782a9,g2079a07aa2+1b2e822518,g2bbee38e9b+c6dfa2ddaf,g337abbeb29+c6dfa2ddaf,g3ddfee87b4+a60788ef87,g50ff169b8f+2eb0e556e8,g52b1c1532d+90ebb246c7,g555ede804d+a60788ef87,g591dd9f2cf+ba8caea58f,g5ec818987f+864ee9cddb,g858d7b2824+9ee1ab4172,g876c692160+a40945ebb7,g8a8a8dda67+90ebb246c7,g8cdfe0ae6a+4fd9e222a8,g99cad8db69+5e309b7bc6,g9ddcbc5298+a1346535a5,ga1e77700b3+df8f93165b,ga8c6da7877+aa12a14d27,gae46bcf261+c6dfa2ddaf,gb0e22166c9+8634eb87fb,gb3f2274832+d0da15e3be,gba4ed39666+1ac82b564f,gbb8dafda3b+5dfd9c994b,gbeb006f7da+97157f9740,gc28159a63d+c6dfa2ddaf,gc86a011abf+9ee1ab4172,gcf0d15dbbd+a60788ef87,gdaeeff99f8+1cafcb7cd4,gdc0c513512+9ee1ab4172,ge79ae78c31+c6dfa2ddaf,geb67518f79+ba1859f325,geb961e4c1e+f9439d1e6f,gee10cc3b42+90ebb246c7,gf1cff7945b+9ee1ab4172,w.2024.12
LSST Data Management Base Package
|
Public Member Functions | |
__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) | |
add_masked_image (self, masked_image, weight=1.0) | |
fill_stacked_masked_image (self, stacked_masked_image) | |
add_image (self, image, weight=1.0) | |
fill_stacked_image (self, stacked_image) | |
Static Public Member Functions | |
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 30 of file accumulator_mean_stack.py.
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 53 of file accumulator_mean_stack.py.
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 181 of file accumulator_mean_stack.py.
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 95 of file accumulator_mean_stack.py.
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 200 of file accumulator_mean_stack.py.
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 130 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 217 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.bit_mask_value |
Definition at line 59 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.calc_error_from_input_variance |
Definition at line 62 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.compute_n_image |
Definition at line 63 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.mask_map |
Definition at line 60 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.mask_threshold_dict |
Definition at line 66 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.masked_pixels_mask |
Definition at line 90 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.n_image |
Definition at line 93 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.no_good_pixels_mask |
Definition at line 61 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.or_mask |
Definition at line 85 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.rejected_weights_by_bit |
Definition at line 86 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.shape |
Definition at line 58 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.sum_w2var |
Definition at line 78 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.sum_wdata |
Definition at line 74 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.sum_wdata2 |
Definition at line 83 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.sum_weight |
Definition at line 72 of file accumulator_mean_stack.py.
lsst.meas.algorithms.accumulator_mean_stack.AccumulatorMeanStack.sum_weight2 |
Definition at line 81 of file accumulator_mean_stack.py.