kai.reduce.lin_correction
Functions
|
Perform linearity correction on input file, as defined below |
Module Contents
- kai.reduce.lin_correction.lin_correction(file, instrument=instruments.default_inst)[source]
Perform linearity correction on input file, as defined below
x = (FITS_orig) / (No. of coadds)
Normalization is defined as a polynomial in the following way: norm = coeffs[0] + (coeffs[1] * x) + (coeffs[2] * x^2) + … + (coeffs[n] * x^n)
FITS_corrected = FITS_orig / norm
- Parameters:
- filestr
File path of FITS file to perform linearity correction
- instrumentinstruments object, optional
Instrument of data. Default is instruments.default_inst