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 :
CCDDataData to be transformed.
flat :
CCDDataFlatfield 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,
Keywordor dict-like, optionalItem(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 :
CCDDataCCDData object with flat corrected.