grid_from_map
- jwst.extract_1d.soss_extract.atoca_utils.grid_from_map(wave_map, trace_profile)[source]
Define a wavelength grid based on the wave_map and trace_profile.
Takes the wavelength of each column at the center of mass of the spatial profile.
- 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.
- Returns:
- gridarray[float]
Output wavelength grid.
- colsarray[int]
Column indices used.