lsst.ip.isr ga92a4e6fc1+12d102fd6a
Loading...
Searching...
No Matches
lsst.ip.isr.linearize.SplineLUT Class Reference

Public Member Functions

 __init__ (self, centers1, values1, centers2=None, values2=None, high_clip=0.01, n_step=2 **20)
 __call__ (self, array, gain=1.0)

Public Attributes

 corr_adu = x - u
 x_max = x_max
 dx = x[1] - x[0]

Protected Member Functions

 _for_gain (self, gain)

Protected Attributes

dict _cache = {}

Detailed Description

Turn a spline or double spline into a lookup table.

Parameters
----------
centers1 : `np.ndarray`
    Akima spline centers for first spline (ADU).
values1 : `np.ndarray`
    Akima spline values for first spline (ADU).
centers2 : `np.ndarray`, optional
    Akima spline centers for second spline (ADU).
values2 : `np.ndarray`, optional
    Akima spline values for second spline (ADU).
high_clip : `float`, optional
    Clip to use at the high end (for backwards compatibility).
n_step : `int`, optional
    Number of steps in the LUT.

Definition at line 924 of file linearize.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.ip.isr.linearize.SplineLUT.__init__ ( self,
centers1,
values1,
centers2 = None,
values2 = None,
high_clip = 0.01,
n_step = 2**20 )

Definition at line 942 of file linearize.py.

Member Function Documentation

◆ __call__()

lsst.ip.isr.linearize.SplineLUT.__call__ ( self,
array,
gain = 1.0 )
Get linearizer from LUT.

Parameters
----------
array : `np.ndarray`
    Array to linearize (in place).
gain : `float`, optional
    Gain to scale.

Definition at line 996 of file linearize.py.

◆ _for_gain()

lsst.ip.isr.linearize.SplineLUT._for_gain ( self,
gain )
protected
Scale LUT to the appropriate gain.

Parameters
----------
gain : `float`

Returns
-------
entry : `tuple`
    table in electrons; scale used.

Definition at line 973 of file linearize.py.

Member Data Documentation

◆ _cache

dict lsst.ip.isr.linearize.SplineLUT._cache = {}
protected

Definition at line 971 of file linearize.py.

◆ corr_adu

lsst.ip.isr.linearize.SplineLUT.corr_adu = x - u

Definition at line 968 of file linearize.py.

◆ dx

lsst.ip.isr.linearize.SplineLUT.dx = x[1] - x[0]

Definition at line 970 of file linearize.py.

◆ x_max

lsst.ip.isr.linearize.SplineLUT.x_max = x_max

Definition at line 969 of file linearize.py.


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