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
FrameDatacompatible Image to perform the dark correction.
Quantity, numerical values andCCDDataare also suported.- master_dark
FrameDatacompatible 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
FrameDataare handled by a multiplying the Master dark image byimage_exposure/dark_exposureIf
imageis not aFrameDatainstance, inplies ininplace=False, and a newFrameDatainstance will be created.