fill_wavenumbers

jwst.residual_fringe.utils.fill_wavenumbers(wnums)[source]

Fill in missing wavenumber values.

Given a wavenumber array with missing values (e.g., columns with on-slice and off-slice pixels), fit the good points using a polynomial, then use the coefficients to estimate wavenumbers on the off-slice pixels.

Note that these new values are physically meaningless but having them in the wavenum array stops the BayesicFitting package from crashing with a LinAlgErr.

Parameters:
wnumsndarray

The wavenumber array.

Returns:
wnums_filledndarray

The wavenumber array with off-slice pixels filled