saturationCorrection

lsst.ip.isr.saturationCorrection(maskedImage, saturation, fwhm, growFootprints=1, interpolate=True, maskName='SAT', fallbackValue=None, useLegacyInterp=True)

Mark saturated pixels and optionally interpolate over them

Parameters:
maskedImagelsst.afw.image.MaskedImage

Image to process.

saturationscalar

Saturation level used as the detection threshold.

fwhmfloat

FWHM of double Gaussian smoothing kernel.

growFootprintsscalar, optional

Number of pixels to grow footprints of detected regions.

interpolateBool, optional

If True, saturated pixels are interpolated over.

maskNamestr, optional

Mask plane name.

fallbackValuescalar, optional

Value of last resort for interpolation.

Notes

The fwhm parameter is used to create a PSF, but the underlying interpolation code (lsst.meas.algorithms.interpolateOverDefects) does not currently make use of this information.