|
lsst.ip.isr g9cb75138f3+bac7c66737
|
Public Member Functions | |
| def | __init__ (self, timeSamples=None, currentSamples=None, **kwargs) |
| def | fromDict (cls, dictionary) |
| def | toDict (self) |
| def | fromTable (cls, tableList) |
| def | toTable (self) |
| def | readTwoColumnPhotodiodeData (cls, filename) |
| def | integrate (self) |
| def | integrateDirectSum (self) |
| def | integrateTrimmedSum (self) |
Public Attributes | |
| timeSamples | |
| currentSamples | |
| integrationMethod | |
Independent current measurements from photodiode for linearity
calculations.
Parameters
----------
timeSamples : `list` or `numpy.ndarray`
List of samples the photodiode was measured at.
currentSamples : `list` or `numpy.ndarray`
List of current measurements at each time sample.
log : `lsst.log.Log`, optional
Log to write messages to.
**kwargs :
Additional parameters. These will be passed to the parent
constructor with the exception of:
``"integrationMethod"``
Name of the algorithm to use to integrate the current
samples. Allowed values are ``DIRECT_SUM`` and
``TRIMMED_SUM`` (`str`).
Definition at line 33 of file photodiode.py.
| def lsst.ip.isr.photodiode.PhotodiodeCalib.__init__ | ( | self, | |
timeSamples = None, |
|||
currentSamples = None, |
|||
| ** | kwargs | ||
| ) |
Reimplemented from lsst.ip.isr.calibType.IsrCalib.
Definition at line 59 of file photodiode.py.
| def lsst.ip.isr.photodiode.PhotodiodeCalib.fromDict | ( | cls, | |
| dictionary | |||
| ) |
Construct a PhotodiodeCalib from a dictionary of properties.
Parameters
----------
dictionary : `dict`
Dictionary of properties.
Returns
-------
calib : `lsst.ip.isr.PhotodiodeCalib`
Constructed photodiode data.
Raises
------
RuntimeError :
Raised if the supplied dictionary is for a different
calibration type.
Reimplemented from lsst.ip.isr.calibType.IsrCalib.
Definition at line 85 of file photodiode.py.
| def lsst.ip.isr.photodiode.PhotodiodeCalib.fromTable | ( | cls, | |
| tableList | |||
| ) |
Construct calibration from a list of tables.
This method uses the `fromDict` method to create the
calibration after constructing an appropriate dictionary from
the input tables.
Parameters
----------
tableList : `list` [`astropy.table.Table`]
List of tables to use to construct the crosstalk
calibration.
Returns
-------
calib : `lsst.ip.isr.PhotodiodeCalib`
The calibration defined in the tables.
Reimplemented from lsst.ip.isr.calibType.IsrCalib.
Definition at line 143 of file photodiode.py.
| def lsst.ip.isr.photodiode.PhotodiodeCalib.integrate | ( | self | ) |
Integrate the current.
Raises
------
RuntimeError :
Raised if the integration method is not known.
Definition at line 222 of file photodiode.py.
| def lsst.ip.isr.photodiode.PhotodiodeCalib.integrateDirectSum | ( | self | ) |
Integrate points.
This uses numpy's trapezoidal integrator.
Returns
-------
sum : `float`
Total charge measured.
Definition at line 237 of file photodiode.py.
| def lsst.ip.isr.photodiode.PhotodiodeCalib.integrateTrimmedSum | ( | self | ) |
Integrate points with a baseline level subtracted.
This uses numpy's trapezoidal integrator.
Returns
-------
sum : `float`
Total charge measured.
See Also
--------
lsst.eotask.gen3.eoPtc
Definition at line 249 of file photodiode.py.
| def lsst.ip.isr.photodiode.PhotodiodeCalib.readTwoColumnPhotodiodeData | ( | cls, | |
| filename | |||
| ) |
Construct a PhotodiodeCalib by reading the simple column format.
Parameters
----------
filename : `str`
File to read samples from.
Returns
-------
calib : `lsst.ip.isr.PhotodiodeCalib`
The calibration defined in the file.
Definition at line 198 of file photodiode.py.
| def lsst.ip.isr.photodiode.PhotodiodeCalib.toDict | ( | self | ) |
Return a dictionary containing the photodiode properties.
The dictionary should be able to be round-tripped through.
`fromDict`.
Returns
-------
dictionary : `dict`
Dictionary of properties.
Reimplemented from lsst.ip.isr.calibType.IsrCalib.
Definition at line 119 of file photodiode.py.
| def lsst.ip.isr.photodiode.PhotodiodeCalib.toTable | ( | self | ) |
Construct a list of tables containing the information in this
calibration.
The list of tables should create an identical calibration
after being passed to this class's fromTable method.
Returns
-------
tableList : `list` [`astropy.table.Table`]
List of tables containing the photodiode calibration
information.
Reimplemented from lsst.ip.isr.calibType.IsrCalib.
Definition at line 173 of file photodiode.py.
| lsst.ip.isr.photodiode.PhotodiodeCalib.currentSamples |
Definition at line 65 of file photodiode.py.
| lsst.ip.isr.photodiode.PhotodiodeCalib.integrationMethod |
Definition at line 73 of file photodiode.py.
| lsst.ip.isr.photodiode.PhotodiodeCalib.timeSamples |
Definition at line 64 of file photodiode.py.