correct_row_gains¶
- sofia_redux.instruments.exes.correct_row_gains.correct_row_gains(data)[source]¶
Correct odd/even row gain offsets.
Changes are additive only, so associated variance is not propagated.
The procedure is:
Split data into odd and even rows.
Subtract odd data from even data.
Fit the difference with a 1st order polynomial to derive gain offsets.
Use the fit coefficients to correct the odd rows to the even rows.
- Parameters:
- datanumpy.ndarray
3D data cube [nframe, nspec, nspat].
- Returns:
- corrected_datanumpy.ndarray
The corrected data.