LinearizeDoubleSpline#
- class lsst.ip.isr.LinearizeDoubleSpline#
Bases:
LinearizeBaseCorrect non-linearity with a spline model.
corrImage1 = uncorrImage - Spline1(coeffs, uncorrImage) corrImage = corrImage1 - Spline2(coeffs, corrImage1)
Notes#
The spline fit calculates a correction as a function of the expected linear flux term. Because of this, the correction needs to be subtracted from the observed flux.
Attributes Summary
Methods Summary
__call__(image, **kwargs)Correct for non-linearity.
Attributes Documentation
- LinearityType = 'DoubleSpline'#
Methods Documentation
- __call__(image, **kwargs)#
Correct for non-linearity.
Parameters#
- image
lsst.afw.image.Image Image to be corrected
- kwargs
dict Dictionary of parameter keywords:
coeffsCoefficient vector (
listornp.ndarray).logLogger to handle messages (
logging.Logger).gainGain value to apply.
Returns#
- output
tuple[bool,int] If true, a correction was applied successfully. The integer indicates the number of pixels that were uncorrectable by being out of range.
- image