LinearizeSquared

class lsst.ip.isr.LinearizeSquared

Bases: lsst.ip.isr.LinearizeBase

Correct non-linearity with a squared model.

corrImage = uncorrImage + c0*uncorrImage^2

where c0 is linearity coefficient 0 for each amplifier.

Attributes Summary

LinearityType

Methods Summary

__call__(image, **kwargs) Correct for non-linearity.

Attributes Documentation

LinearityType = 'Squared'

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:

coeffs

Coefficient vector (list or numpy.array).

log

Logger to handle messages (logging.Logger).

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.