setBadRegions¶
-
lsst.ip.isr.setBadRegions(exposure, badStatistic='MEDIAN')¶ Set all BAD areas of the chip to the average of the rest of the exposure
Parameters: - exposure :
lsst.afw.image.Exposure Exposure to mask. The exposure mask is modified.
- badStatistic :
str, optional Statistic to use to generate the replacement value from the image data. Allowed values are ‘MEDIAN’ or ‘MEANCLIP’.
Returns: - badPixelCount : scalar
Number of bad pixels masked.
- badPixelValue : scalar
Value substituted for bad pixels.
Raises: - RuntimeError
Raised if
badStatisticis not an allowed value.
- exposure :