PhotodiodeCorrectionTask#

class lsst.cp.pipe.PhotodiodeCorrectionTask(*, config: PipelineTaskConfig | None = None, log: logging.Logger | LsstLogAdapter | None = None, initInputs: dict[str, Any] | None = None, **kwargs: Any)#

Bases: PipelineTask

Calculate the photodiode corrections.

Methods Summary

run(inputPtc, inputLinearizer, camera, inputDims)

Calculate the systematic photodiode correction.

runQuantum(butlerQC, inputRefs, outputRefs)

Ensure that the input and output dimensions are passed along.

Methods Documentation

run(inputPtc, inputLinearizer, camera, inputDims)#

Calculate the systematic photodiode correction.

Parameters#

inputPtclsst.ip.isr.PtcDataset

Pre-measured PTC dataset.

inputLinearizerlsst.ip.isr.Linearizer

Previously measured linearizer.

cameralsst.afw.cameraGeom.Camera

Camera geometry.

inputDimslsst.daf.butler.DataCoordinate or dict

DataIds to use to populate the output calibration.

Returns#

resultslsst.pipe.base.Struct

The results struct containing:

outputCorrection

Final correction calibration (lsst.ip.isr.PhotodiodeCorrection).

outputProvenance

Provenance data for the new calibration (lsst.ip.isr.IsrProvenance).

Notes#

Basic correction algorithm (due to Aaron Roodman) is as follows: (1) Run the spline fit to the flux vs monitor diode. (2) For each amp and each exposure, calculate the correction needed to the monitor diode reading to bring it to the spline. We call this the abscissaCorrection. (3) For each exposure, take the median correction across the focal plane. Random variations will cancel out, but systematic variations will not. (4) Subtract this correction from each monitor diode reading. (5) Re-run the spline fit using the corrected monitor diode readings.

runQuantum(butlerQC, inputRefs, outputRefs)#

Ensure that the input and output dimensions are passed along.

Parameters#

butlerQClsst.daf.butler.QuantumContext

Butler to operate on.

inputRefslsst.pipe.base.InputQuantizedConnection

Input data refs to load.

outputRefslsst.pipe.base.OutputQuantizedConnection

Output data refs to persist.