subtract_dark#
- astropop.image.processing.subtract_dark(image, master_dark, dark_exposure, image_exposure, inplace=False)#
Subtract master_dark frame from a FrameData.
- Parameters:
- image
FrameData
compatible Image to perform the dark correction.
Quantity
, numerical values andCCDData
are also suported.- master_dark
FrameData
compatible Master dark image to be subtracted from the
image
.- dark_exposurefloat
Exposure time of the Master dark.
- image_exposurefloat
Exposure time of the
image
.- inplacebool, optional
If True, the operations will be performed inplace in the
image
.
- image
- Returns:
Notes
This function will just subtract a master dark frame from the original image. The master dark calculation, by handling several dark images, must be done previously.
Different exposure times among dark image and
FrameData
are handled by a multiplying the Master dark image byimage_exposure/dark_exposure
If
image
is not aFrameData
instance, inplies ininplace=False
, and a newFrameData
instance will be created.