CrosstalkExtractTask#

class lsst.cp.pipe.CrosstalkExtractTask(**kwargs)#

Bases: PipelineTask

Task 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#

stepnamestr

State of processing to view.

pixelsInnp.ndarray, (N,)

Pixel values from the potential crosstalk source.

pixelsOutnp.ndarray, (N,)

Pixel values from the potential crosstalk target.

sourceNamestr

Source amplifier name

targetNamestr

Target amplifier name

debugView(stepname, exposure)#

Utility function to examine the image being processed.

Parameters#

stepnamestr

State of processing to view.

exposurelsst.afw.image.Exposure

Exposure to view.

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#

inputExplsst.afw.image.Exposure

Input exposure to measure pixel ratios on.

sourceExplist [lsst.afw.image.Exposure], optional

List of chips to use as sources to measure inter-chip crosstalk.

Returns#

resultslsst.pipe.base.Struct

The results struct containing:

outputRatios

A 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]]]]).

outputFluxes

A catalog of flux lists. The dictionaries are indexed such that: outputFluxes[sourceChip][sourceAmp] contains the flux list used in the outputRatios (dict [dict [list]]).