CrosstalkConfig#
- class lsst.ip.isr.CrosstalkConfig(*args, **kw)#
Bases:
ConfigConfiguration for intra-detector crosstalk removal.
Attributes Summary
Type of background subtraction to use when applying correction.
Name for crosstalk mask plane.
Shape of the coefficient array.
Amplifier-indexed crosstalk coefficients to use.
Use quadratic crosstalk coefficients in the crosstalk correction (
bool, defaultFalse)Use subtrahend image thresholding instead of input image thesholding to set crosstalk mask? (
bool, defaultFalse)Set crosstalk mask plane for pixels over this value.
Ignore the detector crosstalk information in favor of CrosstalkConfig values? (
bool, defaultFalse)Methods Summary
getCrosstalk([detector])Return a 2-D numpy array of crosstalk coefficients in the proper shape.
hasCrosstalk([detector])Return a boolean indicating if crosstalk coefficients exist.
Attributes Documentation
- crosstalkBackgroundMethod#
Type of background subtraction to use when applying correction. (
str, default'None')Allowed values:
'None'Do no background subtraction.
'AMP'Subtract amplifier-by-amplifier background levels.
'DETECTOR'Subtract detector level background.
'None'Field is optional
- crosstalkMaskPlane#
Name for crosstalk mask plane. (
str, default'CROSSTALK')
- crosstalkShape#
Shape of the coefficient array. This should be equal to [nAmp, nAmp]. (
List, default[1])
- crosstalkValues#
Amplifier-indexed crosstalk coefficients to use. This should be arranged as a 1 x nAmp**2 list of coefficients, such that when reshaped by crosstalkShape, the result is nAmp x nAmp. This matrix should be structured so CT * [amp0 amp1 amp2 …]^T returns the column vector [corr0 corr1 corr2 …]^T. (
List, default[0.0])
- doQuadraticCrosstalkCorrection#
Use quadratic crosstalk coefficients in the crosstalk correction (
bool, defaultFalse)
- doSubtrahendMasking#
Use subtrahend image thresholding instead of input image thesholding to set crosstalk mask? (
bool, defaultFalse)
- minPixelToMask#
Set crosstalk mask plane for pixels over this value. (
float, default45000)
- useConfigCoefficients#
Ignore the detector crosstalk information in favor of CrosstalkConfig values? (
bool, defaultFalse)
Methods Documentation
- getCrosstalk(detector=None)#
Return a 2-D numpy array of crosstalk coefficients in the proper shape.
Parameters#
- detector
lsst.afw.cameraGeom.detector Detector that is to be crosstalk corrected.
Returns#
- coeffs
numpy.ndarray Crosstalk coefficients that can be used to correct the detector.
Raises#
- RuntimeError
Raised if no coefficients could be generated from this detector/configuration.
- detector