nans_in_wavelength
- jwst.extract_1d.ifu.nans_in_wavelength(wavelength, dq)[source]
Check for NaNs in the wavelength array.
If NaNs are found in the wavelength array, flag them in the DQ array, and truncate the arrays at either or both ends if NaNs are found at endpoints (unless the entire array is NaN).
- Parameters:
- wavelengthndarray
The 1D wavelength in micrometers at each pixel.
- dqndarray
The 1D data quality array.
- Returns:
- wavelengthndarray
Truncated 1D wavelength array.
- dqndarray
Truncated 1D DQ array.
- slcslice
Slice used for truncation.