4.26. zero_correction¶
Applies zero correction to the FITS data using a master zero file.
- Fits.zero_correction(master_zero: Self, output=None, override=False, force=False) Self¶
Applies zero correction to the FITS data using a master zero file.
Parameters
master_zeroSelfThe master zero file to be used for the correction.
outputstr, optionalThe path where the zero-corrected FITS file will be saved.
overridebool, optional, default=FalseIf
True, will overwrite the output path if a file already exists.forcebool, optional, default=FalseFlag to indicate overcorrection.
Returns
FitsA zero-corrected
Fitsobject.
Raises
OverCorrectionIf the
Fitsobject is already zero corrected andforceisFalse.
4.26.1. Example:¶
from myraflib import Fits
fits = Fits.sample()
master_zero = Fits.sample()
zero_corrected = fits.zero_correction(master_zero)