pynrc.reduce.calib.calc_linearity_coeff

pynrc.reduce.calib.calc_linearity_coeff(data, sat_vals, well_depth, sat_calc=0.98, ref_info=[4, 4, 4, 4], counts_cut=None, deg=8, use_legendre=True, lxmap=[0, 100000.0], nonlin=False, **kwargs)[source]
counts_cutNone or float

Option to fit two sets of polynomial coefficients to lower and uppper values. ‘counts_cut’ specifies the division in values of electrons. Useful for pixels with different non-linear behavior at low flux levels. Recommended values of 15000 e-.