LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, timeSamples=None, currentSamples=None, **kwargs) | |
fromDict (cls, dictionary) | |
toDict (self) | |
fromTable (cls, tableList) | |
toTable (self) | |
readTwoColumnPhotodiodeData (cls, filename) | |
integrate (self) | |
integrateDirectSum (self) | |
integrateTrimmedSum (self) | |
integrateChargeSum (self) | |
Public Attributes | |
timeSamples | |
currentSamples | |
integrationMethod | |
currentScale | |
Static Protected Attributes | |
str | _OBSTYPE = 'PHOTODIODE' |
str | _SCHEMA = 'Photodiode' |
float | _VERSION = 1.0 |
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``, ``TRIMMED_SUM``, and ``CHARGE_SUM`` (`str`). ``"currentScale"`` Scale factor to apply to the current samples for the ``CHARGE_SUM`` integration method. A typical value would be `-1`, to flip the sign of the integrated charge.
Definition at line 33 of file photodiode.py.
lsst.ip.isr.photodiode.PhotodiodeCalib.__init__ | ( | self, | |
timeSamples = None, | |||
currentSamples = None, | |||
** | kwargs ) |
Reimplemented from lsst.ip.isr.calibType.IsrCalib.
Definition at line 63 of file photodiode.py.
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 94 of file photodiode.py.
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 152 of file photodiode.py.
lsst.ip.isr.photodiode.PhotodiodeCalib.integrate | ( | self | ) |
Integrate the current. Raises ------ RuntimeError Raised if the integration method is not known.
Definition at line 231 of file photodiode.py.
lsst.ip.isr.photodiode.PhotodiodeCalib.integrateChargeSum | ( | self | ) |
For this method, the values in .currentSamples are actually the integrated charge values as measured by the ammeter for each sampling interval. We need to do a baseline subtraction, based on the charge values when the LED is off, then sum up the corrected signals. Returns ------- sum : `float` Total charge measured.
Definition at line 280 of file photodiode.py.
lsst.ip.isr.photodiode.PhotodiodeCalib.integrateDirectSum | ( | self | ) |
Integrate points. This uses numpy's trapezoidal integrator. Returns ------- sum : `float` Total charge measured.
Definition at line 248 of file photodiode.py.
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 260 of file photodiode.py.
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 207 of file photodiode.py.
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 128 of file photodiode.py.
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 182 of file photodiode.py.
|
staticprotected |
Definition at line 59 of file photodiode.py.
|
staticprotected |
Definition at line 60 of file photodiode.py.
|
staticprotected |
Definition at line 61 of file photodiode.py.
lsst.ip.isr.photodiode.PhotodiodeCalib.currentSamples |
Definition at line 69 of file photodiode.py.
lsst.ip.isr.photodiode.PhotodiodeCalib.currentScale |
Definition at line 82 of file photodiode.py.
lsst.ip.isr.photodiode.PhotodiodeCalib.integrationMethod |
Definition at line 77 of file photodiode.py.
lsst.ip.isr.photodiode.PhotodiodeCalib.timeSamples |
Definition at line 68 of file photodiode.py.