oversample_grid
- jwst.extract_1d.soss_extract.atoca_utils.oversample_grid(wave_grid, n_os)[source]
Create an oversampled version of the input 1D wavelength grid.
- Parameters:
- wave_gridarray[float]
Wavelength grid to be oversampled.
- n_osint or array[int]
Oversampling factor. If it is a scalar, take the same value for each interval of the grid. If it is an array, n_os specifies the oversampling at each interval of the grid, so
len(n_os) = len(wave_grid) - 1.
- Returns:
- wave_grid_osarray[float]
The oversampled wavelength grid.