interpolate_onto_grid
- jwst.pathloss.pathloss.interpolate_onto_grid(wavelength_grid, wavelength_vector, pathloss_vector)[source]
Interpolate pathloss value onto grid.
Get the value of pathloss by interpolating each non-NaN element of
wavelength_gridintopathloss_vectorusing the index lookup ofwavelength_vector. Pixels with wavelengths outside the range of the reference file should have a correction of NaN.- Parameters:
- wavelength_gridndarray
The 2-D grid of wavelengths for each science data pixel
- wavelength_vectorndarray
The 1-D vector of wavelengths
- pathloss_vectorndarray
Corresponding 1-D vector of pathloss values
- Returns:
- pathloss_gridndarray
Grid of pathloss corrections for each non-NaN pixel