flat_correct

ccdproc.flat_correct(ccd, flat, min_value=None, add_keyword=True)[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 transformed.

flat : CCDData

Flatfield to apply to the data.

min_value : float or None, optional

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. Default is None.

add_keyword : str, Keyword or dict-like, optional

Item(s) to add to metadata of result. Set to False or 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.