flat_correct#

astropop.image.processing.flat_correct(image, master_flat, min_value=None, norm_value=None, inplace=False)#

Divide the image by a flat field frame.

Parameters:
imageFrameData compatible

Image to perform the flat field correction. Quantity, numerical values and CCDData are also suported.

master_flatFrameData compatible

Master flat field image to be subtracted from the image.

min_valuefloat, optional
norm_valuefloat, optional
inplacebool, optional

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

Returns:
FrameData:

New flat field corrected FrameData instance if inplace, else the image FrameData instance.