subtract_dark¶
-
ccdproc.
subtract_dark
(ccd, master, dark_exposure=None, data_exposure=None, exposure_time=None, exposure_unit=None, scale=False, add_keyword=None)[source]¶ Subtract dark current from an image.
Parameters: ccd :
CCDData
Image from which dark will be subtracted
master :
CCDData
Dark image
dark_exposure :
Quantity
Exposure time of the dark image; if specified, must also provided
data_exposure
.data_exposure :
Quantity
Exposure time of the science image; if specified, must also provided
dark_exposure
.exposure_time : str or
Keyword
Name of key in image metadata that contains exposure time.
exposure_unit :
Unit
Unit of the exposure time if the value in the meta data does not include a unit.
add_keyword : str,
Keyword
or dict-like, optionalItem(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: result :
CCDData
Dark-subtracted image