subtract_dark¶
-
ccdproc.subtract_dark(ccd, master, dark_exposure=None, data_exposure=None, exposure_time=None, exposure_unit=None, scale=False, add_keyword=True)[source]¶ Subtract dark current from an image.
Parameters: ccd :
CCDDataImage from which dark will be subtracted.
master :
CCDDataDark image.
dark_exposure :
Quantityor None, optionalExposure time of the dark image; if specified, must also provided
data_exposure. Default isNone.data_exposure :
Quantityor None, optionalExposure time of the science image; if specified, must also provided
dark_exposure. Default isNone.exposure_time : str or
Keywordor None, optionalName of key in image metadata that contains exposure time. Default is
None.exposure_unit :
Unitor None, optionalUnit of the exposure time if the value in the meta data does not include a unit. Default is
None.scale: bool, optional
If True, scale the dark frame by the exposure times. Default is
False.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: result :
CCDDataDark-subtracted image.