GainCorrection#
- class lsst.ip.isr.GainCorrection(ampNames=[], gainAdjustments=[], **kwargs)#
Bases:
IsrCalibGain correction parameters.
Parameters#
- ampNames
list[str] List of amplifier names.
- gainAdjustments
list[float] List of gain adjustment parameters.
- **kwargs :
Additional parameters.
Methods Summary
correctGains(gains[, exposure])Correct a dictionary of gains (in place).
fromDict(dictionary)Construct a GainCorrection from a dictionary of properties.
fromTable(tableList)Construct a calibration from a list of tables.
setParameters(*[, ampNames, gainAdjustments])Set the parameters for the gain correction model.
toDict()Return a dictionary containing the calibration properties.
toTable()Construct a list of table(s) containing the GainCorrection data.
Methods Documentation
- correctGains(gains, exposure=None)#
Correct a dictionary of gains (in place).
Parameters#
- gains
dict[str,float] Array of gains to correct.
- exposure
lsst.afw.image.Exposure, optional Exposure with additional metadata for correction.
- gains
- classmethod fromDict(dictionary)#
Construct a GainCorrection from a dictionary of properties.
Parameters#
- dictionary
dict Dictionary of properties.
Returns#
- calib
lsst.ip.isr.GainCorrection Constructed calibration.
- dictionary
- classmethod fromTable(tableList)#
Construct a calibration from a list of tables.
Parameters#
- tableList
list[astropy.table.Table] List of table(s) to use to construct the GainCorrection.
Returns#
- calib
lsst.ip.isr.GainCorrection The calibration defined in the table(s).
- tableList
- setParameters(*, ampNames=[], gainAdjustments=[])#
Set the parameters for the gain correction model.
Parameters#
- ampNames
list[str] List of amplifier names.
- gainAdjustments
list[float] List of gain adjustment parameters.
- ampNames
- ampNames