5.28. zero_correction¶
Performs zero correction on the FITS data.
- FitsArray.zero_correction(self, master_zero: Fits, output: str | None = None, force: bool = False) Self¶
Performs zero correction on the FITS data.
Parameters
master_zeroFitsThe zero file to be used for correction.
outputOptional[str]New path to save the files after correction.
forcebool, default=FalseIf True, forces the correction even if it results in overcorrection.
Returns
FitsArrayA zero-corrected
FitsArrayobject.
5.28.1. Example:¶
from myraflib import FitsArray, Fits
import math
fa = FitsArray.sample()
master_zero = Fits.sample()
zero_corrected_fa = fa.zero_correction(master_zero)