astropy:docs

gain_correct

ccdproc.gain_correct(ccd, gain, gain_unit=None, add_keyword=None)[source]

Correct the gain in the image.

Parameters:

ccd : CCDData

Data to have gain corrected

gain : Quantity or Keyword

gain value for the image expressed in electrons per adu

gain_unit : Unit, optional

Unit for the gain; used only if gain itself does not provide units.

add_keyword : str, Keyword or dict-like, optional

Item(s) to add to metadata of result. Set to None to completely disable logging. Default is to add a dictionary with a single item: the key is the name of this function and the value is a string containing the arguments the function was called with, except the value of this argument.

Returns:

result : CCDData

CCDData object with gain corrected

Page Contents