astropy:docs

flat_correct

ccdproc.flat_correct(ccd, flat, min_value=None, add_keyword=None)[source]

Correct the image for flat fielding.

The flat field image is normalized by its mean before flat correcting.

Parameters:

ccd : CCDData

Data to be flatfield corrected

flat : CCDData

Flatfield to apply to the data

min_value : None or float

Minimum value for flat field. The value can either be None and no minimum value is applied to the flat or specified by a float which will replace all values in the flat by the min_value.

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:

ccd : CCDData

CCDData object with flat corrected

Page Contents