lsst.ip.isr g9e598d6448+8c28d2aaf4
Loading...
Searching...
No Matches
lsst.ip.isr.linearize.LinearizeDoubleSpline Class Reference
Inheritance diagram for lsst.ip.isr.linearize.LinearizeDoubleSpline:
lsst.ip.isr.linearize.LinearizeBase

Public Member Functions

 __call__ (self, image, **kwargs)

Static Public Attributes

 LinearityType = None

Static Protected Attributes

bool _lut = None
bool _bad_amp = False

Detailed Description

Correct 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.

Definition at line 1097 of file linearize.py.

Member Function Documentation

◆ __call__()

lsst.ip.isr.linearize.LinearizeDoubleSpline.__call__ ( self,
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 `np.ndarray`).
    ``log``
        Logger to handle messages (`logging.Logger`).
    ``gain``
        Gain 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.

Definition at line 1115 of file linearize.py.

Member Data Documentation

◆ _bad_amp

bool lsst.ip.isr.linearize.LinearizeDoubleSpline._bad_amp = False
staticprotected

Definition at line 1113 of file linearize.py.

◆ _lut

bool lsst.ip.isr.linearize.LinearizeDoubleSpline._lut = None
staticprotected

Definition at line 1112 of file linearize.py.

◆ LinearityType

lsst.ip.isr.linearize.LinearizeBase.LinearityType = None
staticinherited

Definition at line 714 of file linearize.py.


The documentation for this class was generated from the following file: