GainCorrection#

class lsst.ip.isr.GainCorrection(ampNames=[], gainAdjustments=[], **kwargs)#

Bases: IsrCalib

Gain correction parameters.

Parameters#

ampNameslist [str]

List of amplifier names.

gainAdjustmentslist [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#

gainsdict [str, float]

Array of gains to correct.

exposurelsst.afw.image.Exposure, optional

Exposure with additional metadata for correction.

classmethod fromDict(dictionary)#

Construct a GainCorrection from a dictionary of properties.

Parameters#

dictionarydict

Dictionary of properties.

Returns#

caliblsst.ip.isr.GainCorrection

Constructed calibration.

classmethod fromTable(tableList)#

Construct a calibration from a list of tables.

Parameters#

tableListlist [astropy.table.Table]

List of table(s) to use to construct the GainCorrection.

Returns#

caliblsst.ip.isr.GainCorrection

The calibration defined in the table(s).

setParameters(*, ampNames=[], gainAdjustments=[])#

Set the parameters for the gain correction model.

Parameters#

ampNameslist [str]

List of amplifier names.

gainAdjustmentslist [float]

List of gain adjustment parameters.

toDict()#

Return a dictionary containing the calibration properties.

Returns#

dictionarydict

Dictionary of properties.

toTable()#

Construct a list of table(s) containing the GainCorrection data.

Returns#

tableListlist [astropy.table.Table]

List of tables containing the GainCorrection information.