test_linearity_correction

caltest.test_caldetector1.test_linearity.test_linearity_correction(fits_input, fits_linearity, fits_output)[source]

Check that the linearity correction is properly applied to all relevant pixels. The algorithm uses a polynomial of the form .. math:

F_c = \sum_{i=0}^N C_i F^i

where \(F_c\) is the corrected counts, \(C\) are the correction coefficients, and \(F\) is the uncorrected counts. The coefficients of the polynomial at each pixel are given by the reference file.