OverscanCorrectionTask#
- class lsst.ip.isr.OverscanCorrectionTask(statControl=None, **kwargs)#
Bases:
OverscanCorrectionTaskBaseCorrection task for serial/parallel overscan.
(Will be deprecated)
This class contains a number of utilities that are easier to understand and use when they are not embedded in nested if/else loops.
Parameters#
- statControl
lsst.afw.math.StatisticsControl, optional Statistics control object.
Methods Summary
run(exposure, amp[, isTransposed])Measure and remove serial/parallel overscan from an amplifier image.
Methods Documentation
- run(exposure, amp, isTransposed=False)#
Measure and remove serial/parallel overscan from an amplifier image.
This will be deprecated.
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 serial overscan image data (scalar or
lsst.afw.image.Image).overscanImageImage of the serial overscan region with the serial overscan correction applied (
lsst.afw.image.Image). This quantity is used to estimate the amplifier read noise empirically.parallelOverscanFitValue or fit subtracted from the parallel overscan image data (scalar,
lsst.afw.image.Image, or None).parallelOverscanImageImage of the parallel overscan region with the parallel overscan correction applied (
lsst.afw.image.Imageor None).overscanMeanMean of the fit serial overscan region. This and the following values will be tuples of (serial, parallel) if doParallelOverscan=True.
overscanMedianMedian of the fit serial overscan region.
overscanSigmaSigma of the fit serial overscan region.
residualMeanMean of the residual of the serial overscan region after correction.
residualMedianMedian of the residual of the serial overscan region after correction.
residualSigmaMean of the residual of the serial overscan region after correction.
Raises#
- RuntimeError
Raised if an invalid overscan type is set.
- exposure
- statControl