CrosstalkExtractTask#
- class lsst.cp.pipe.CrosstalkExtractTask(**kwargs)#
Bases:
PipelineTaskTask to measure pixel ratios to find crosstalk.
Methods Summary
debugPixels(stepname, pixelsIn, pixelsOut, ...)Utility function to examine the CT ratio pixel values.
debugView(stepname, exposure)Utility function to examine the image being processed.
run(inputExp[, sourceExps])Measure pixel ratios between amplifiers in inputExp.
Methods Documentation
- debugPixels(stepname, pixelsIn, pixelsOut, sourceName, targetName)#
Utility function to examine the CT ratio pixel values.
Parameters#
- stepname
str State of processing to view.
- pixelsIn
np.ndarray, (N,) Pixel values from the potential crosstalk source.
- pixelsOut
np.ndarray, (N,) Pixel values from the potential crosstalk target.
- sourceName
str Source amplifier name
- targetName
str Target amplifier name
- stepname
- debugView(stepname, exposure)#
Utility function to examine the image being processed.
Parameters#
- stepname
str State of processing to view.
- exposure
lsst.afw.image.Exposure Exposure to view.
- stepname
- run(inputExp, sourceExps=[])#
Measure pixel ratios between amplifiers in inputExp.
Extract crosstalk ratios between different amplifiers.
For pixels above
config.threshold, we calculate the ratio between each background-subtracted target amp and the source amp. We return a list of ratios for each pixel for each target/source combination, as nested dictionary containing the ratio.Parameters#
- inputExp
lsst.afw.image.Exposure Input exposure to measure pixel ratios on.
- sourceExp
list[lsst.afw.image.Exposure], optional List of chips to use as sources to measure inter-chip crosstalk.
Returns#
- results
lsst.pipe.base.Struct The results struct containing:
outputRatiosA catalog of ratio lists. The dictionaries are indexed such that: outputRatios[targetChip][sourceChip][targetAmp][sourceAmp] contains the ratio list for that combination (
dict[dict[dict[dict[list]]]]).outputFluxesA catalog of flux lists. The dictionaries are indexed such that: outputFluxes[sourceChip][sourceAmp] contains the flux list used in the outputRatios (
dict[dict[list]]).
- inputExp