gain_correct#

astropop.image.processing.gain_correct(image, gain, inplace=False)#

Process the gain correction of an image.

Parameters:
imageFrameData compatible

Values to perform the operation. Quantity, numerical values and CCDData are also suported.

gainfloat, Quantity or QFloat

Gain to be applied on the image numerical values.

inplacebool, optional

If True, the operations will be performed inplace in the image.

Returns:
FrameData:

New gain corrected FrameData instance if not inplace, else the image FrameData instance.

Notes

  • The gain is implemented as a multiplier of the original image.

  • If image is not a FrameData instance, inplies in inplace=False, and a new FrameData instance will be created.