lsst.ip.isr  19.0.0-14-g5673ca6+10
Public Member Functions | Static Public Attributes | List of all members
lsst.ip.isr.linearize.LinearizeBase Class Reference
Inheritance diagram for lsst.ip.isr.linearize.LinearizeBase:
lsst.ip.isr.linearize.LinearizeLookupTable lsst.ip.isr.linearize.LinearizeNone lsst.ip.isr.linearize.LinearizePolynomial lsst.ip.isr.linearize.LinearizeProportional lsst.ip.isr.linearize.LinearizeSquared

Public Member Functions

def __call__ (self, image, kwargs)
 

Static Public Attributes

 LinearityType = None
 

Detailed Description

Abstract base class functor for correcting non-linearity.

Subclasses must define __call__ and set class variable
LinearityType to a string that will be used for linearity type in
the cameraGeom.Amplifier.linearityType field.

All linearity corrections should be defined in terms of an
additive correction, such that:

corrected_value = uncorrected_value + f(uncorrected_value)

Definition at line 281 of file linearize.py.

Member Function Documentation

◆ __call__()

def lsst.ip.isr.linearize.LinearizeBase.__call__ (   self,
  image,
  kwargs 
)
Correct 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`).
    ``"table"``
Lookup table data (`numpy.array`).
    ``"log"``
Logger to handle messages (`lsst.log.Log`).

Returns
-------
output : `bool`
    If true, a correction was applied successfully.

Raises
------
RuntimeError:
    Raised if the linearity type listed in the
    detector does not match the class type.

Definition at line 296 of file linearize.py.

Member Data Documentation

◆ LinearityType

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

Definition at line 293 of file linearize.py.


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