grid_from_map_with_extrapolation

jwst.extract_1d.soss_extract.atoca_utils.grid_from_map_with_extrapolation(wave_map, trace_profile, wave_range=None, n_os=1)[source]

Define a wavelength grid based on wave_map, trace_profile, and optional user wave_range.

Takes the central wavelength at each column given by the center of mass of the spatial profile (so one wavelength per column). If wave_range is outside of the wave_map, extrapolate.

Parameters:
wave_maparray[float]

Array of the pixel wavelengths for a given order.

trace_profilearray[float]

Array of the spatial profile for a given order.

wave_rangelist[float]

Minimum and maximum boundary of the grid to generate, in microns. This list must include some wavelengths of wave_map. Note that this list is exclusive, in the sense that wave_range[0] and wave_range[1] will not be between min(output) and max(output). Instead, min(output) will be the smallest value in the extrapolated grid that is greater than wave_range[0] and max(output) will be the largest value that is less than wave_range[1].

n_osint

Oversampling of the grid compared to the pixel sampling.

Returns:
grid_osarray[float]

Wavelength grid with oversampling applied