ParallelOverscanCorrectionTask#
- class lsst.ip.isr.ParallelOverscanCorrectionTask(statControl=None, **kwargs)#
Bases:
OverscanCorrectionTaskBaseCorrection task for parallel overscan.
Parameters#
- statControl
lsst.afw.math.StatisticsControl, optional Statistics control object.
Methods Summary
maskParallelOverscanAmp(exposure, amp[, ...])Mask parallel overscan, growing saturated pixels.
run(exposure, amp[, isTransposed])Measure and remove parallel overscan from an amplifier image.
Methods Documentation
- maskParallelOverscanAmp(exposure, amp, saturationLevel=None)#
Mask parallel overscan, growing saturated pixels.
This operates on the image in-place.
Parameters#
- exposure
lsst.afw.image.Exposure An untrimmed raw exposure.
- amp
lsst.afw.cameraGeom.Amplifier The amplifier to use for masking.
- saturationLevel
float, optional Saturation level to use for masking.
- exposure
- run(exposure, amp, isTransposed=False)#
Measure and remove parallel overscan from an amplifier image.
This method assumes that serial overscan has already been removed from the amplifier.
Parameters#
- exposure
lsst.afw.image.Exposure Image data that will have the overscan corrections applied.
- amp
lsst.afw.cameraGeom.Amplifier Amplifier to use for debugging purposes.
- isTransposed
bool, optional Is the image transposed, such that serial and parallel overscan regions are reversed? Default is False.
Returns#
- overscanResults
lsst.pipe.base.Struct Result struct with components:
imageFitValue or fit subtracted from the amplifier image data (scalar or
lsst.afw.image.Image).overscanFitValue or fit subtracted from the parallel overscan image data (scalar or
lsst.afw.image.Image).overscanImageImage of the parallel overscan region with the parallel overscan correction applied (
lsst.afw.image.Image). This quantity is used to estimate the amplifier read noise empirically.overscanMeanMean of the fit parallel overscan region.
overscanMedianMedian of the fit parallel overscan region.
overscanSigmaSigma of the fit parallel overscan region.
residualMeanMean of the residual of the parallel overscan region after correction.
residualMedianMedian of the residual of the parallel overscan region after correction.
residualSigmaMean of the residual of the parallel overscan region after correction.
Raises#
- RuntimeError
Raised if an invalid overscan type is set.
- exposure
- statControl