lsst.ip.isr g1545be03d4+6ce741485c
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
lsst.ip.isr.photodiode.PhotodiodeCalib Class Reference
Inheritance diagram for lsst.ip.isr.photodiode.PhotodiodeCalib:
lsst.ip.isr.calibType.IsrCalib

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ fromDict()

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.

◆ fromTable()

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.

◆ integrate()

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.

◆ integrateDirectSum()

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.

◆ integrateTrimmedSum()

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.

◆ readTwoColumnPhotodiodeData()

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.

◆ toDict()

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.

◆ toTable()

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.

Member Data Documentation

◆ currentSamples

lsst.ip.isr.photodiode.PhotodiodeCalib.currentSamples

Definition at line 65 of file photodiode.py.

◆ integrationMethod

lsst.ip.isr.photodiode.PhotodiodeCalib.integrationMethod

Definition at line 73 of file photodiode.py.

◆ timeSamples

lsst.ip.isr.photodiode.PhotodiodeCalib.timeSamples

Definition at line 64 of file photodiode.py.


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