CpSkySubtractBackgroundTask#
- class lsst.cp.pipe.CpSkySubtractBackgroundTask(**kwargs)#
Bases:
PipelineTaskSubtract per-exposure background from individual detector masked images.
The cpSkyMaskedIsr images constructed by CpSkyImageTask have the scaled background constructed by CpSkyScaleMeasureTask subtracted, and new background models are constructed for the remaining signal.
The output was called
icExpBackgroundin gen2, but the product created here has definition clashes that prevent that from being reused.Methods Summary
run(inputExp, inputBkg, inputScale)Subtract per-exposure background from individual detector masked images.
runQuantum(butlerQC, inputRefs, outputRefs)Ensure that the input and output dimensions are passed along.
Methods Documentation
- run(inputExp, inputBkg, inputScale)#
Subtract per-exposure background from individual detector masked images.
Parameters#
- inputExp
lsst.afw.image.Exposure The ISR processed, detection masked image.
- inputBkg`lsst.pipe.tasks.background.FocalPlaneBackground.
Full focal plane background for this exposure.
- inputScale
lsst.daf.base.PropertyList Metadata containing the scale factor.
Returns#
- results
lsst.pipe.base.Struct The results struct containing:
outputBkgRemnant sky background with the full-exposure component removed. (
lsst.afw.math.BackgroundList)
- inputExp
- 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