AccumulatorMeanStack¶
- class lsst.meas.algorithms.AccumulatorMeanStack(shape, bit_mask_value, mask_threshold_dict={}, mask_map=[], no_good_pixels_mask=None, calc_error_from_input_variance=True, compute_n_image=False)¶
Bases:
object
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?
- shape
Methods Summary
add_image
(image[, weight])Add an image to the stack.
add_masked_image
(masked_image[, weight])Add a masked image to the stack.
fill_stacked_image
(stacked_image)Fill the image after accumulation.
fill_stacked_masked_image
(stacked_masked_image)Fill the stacked mask image after accumulation.
stats_ctrl_to_threshold_dict
(stats_ctrl)Convert stats control to threshold dict.
Methods Documentation
- add_image(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
, optional Weight to apply for weighted mean.
- image
- add_masked_image(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
, optional Weight to apply for weighted mean.
- masked_image
- fill_stacked_image(stacked_image)¶
Fill the image after accumulation.
- Parameters:
- stacked_image
lsst.afw.image.Image
Total image.
- stacked_image
- fill_stacked_masked_image(stacked_masked_image)¶
Fill the stacked mask image after accumulation.
- Parameters:
- stacked_masked_image
lsst.afw.image.MaskedImage
Total masked image.
- stacked_masked_image
- static stats_ctrl_to_threshold_dict(stats_ctrl)¶
Convert stats control to threshold dict.
- Parameters:
- stats_ctrl
lsst.afw.math.StatisticsControl
- stats_ctrl
- Returns:
- threshold_dict
dict
Dict mapping from bit to propagation threshold.
- threshold_dict