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 :
CCDData
Image from which dark will be subtracted.
master :
CCDData
Dark image.
dark_exposure :
Quantity
or None, optionalExposure time of the dark image; if specified, must also provided
data_exposure
. Default isNone
.data_exposure :
Quantity
or None, optionalExposure time of the science image; if specified, must also provided
dark_exposure
. Default isNone
.exposure_time : str or
Keyword
or None, optionalName of key in image metadata that contains exposure time. Default is
None
.exposure_unit :
Unit
or 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,
Keyword
or 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 :
CCDData
Dark-subtracted image.