5.31. ccdproc¶
Performs CCD correction on the FITS data using provided calibration files.
- FitsArray.ccdproc(self, master_zero: Fits | None = None, master_dark: Fits | None = None, master_flat: Fits | None = None, exposure: str | None = None, output: str | None = None, force: bool = False) Self¶
Performs CCD correction on the FITS data using provided calibration files.
Parameters
master_zeroOptional[Fits]The zero file to be used for bias correction.
master_darkOptional[Fits]The dark file to be used for dark correction.
master_flatOptional[Fits]The flat file to be used for flat-field correction.
exposureOptional[str]The header card containing exposure time (
exptime).outputOptional[str]New path to save the corrected files.
forcebool, default=FalseIf True, forces the correction even if it results in overcorrection.
Returns
FitsArrayA CCD-corrected
FitsArrayobject.
5.31.1. Example:¶
from myraflib import FitsArray, Fits
fa = FitsArray.sample()
master_zero = Fits.sample()
master_dark = Fits.sample()
master_flat = Fits.sample()
calibrated_fa = fa.ccdproc(master_zero=master_zero, master_dark=master_dark, master_flat=master_flat)