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:
PipelineTaskCalculate 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#
- inputPtc
lsst.ip.isr.PtcDataset Pre-measured PTC dataset.
- inputLinearizer
lsst.ip.isr.Linearizer Previously measured linearizer.
- camera
lsst.afw.cameraGeom.Camera Camera geometry.
- inputDims
lsst.daf.butler.DataCoordinateordict DataIds to use to populate the output calibration.
Returns#
- results
lsst.pipe.base.Struct The results struct containing:
outputCorrectionFinal correction calibration (
lsst.ip.isr.PhotodiodeCorrection).outputProvenanceProvenance 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.
- inputPtc
- runQuantum(butlerQC, inputRefs, outputRefs)#
Ensure that the input and output dimensions are passed along.
Parameters#
- butlerQC
lsst.daf.butler.QuantumContext Butler to operate on.
- inputRefs
lsst.pipe.base.InputQuantizedConnection Input data refs to load.
- outputRefs
lsst.pipe.base.OutputQuantizedConnection Output data refs to persist.
- butlerQC