|
lsst.ip.isr ga92a4e6fc1+473942d20f
|
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 = {} |
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.
| 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.
| 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.
|
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.
|
protected |
Definition at line 971 of file linearize.py.
| lsst.ip.isr.linearize.SplineLUT.corr_adu = x - u |
Definition at line 968 of file linearize.py.
| lsst.ip.isr.linearize.SplineLUT.dx = x[1] - x[0] |
Definition at line 970 of file linearize.py.
| lsst.ip.isr.linearize.SplineLUT.x_max = x_max |
Definition at line 969 of file linearize.py.