get_wave_p_or_m

jwst.extract_1d.soss_extract.atoca_utils.get_wave_p_or_m(wave_map, dispersion_axis=1)[source]

Compute upper and lower boundaries of a pixel map, given the pixel central value.

Parameters:
wave_maparray[float]

2D map of the pixel central wavelength.

dispersion_axisint, optional

Which axis is the dispersion axis (0 or 1).

Returns:
wave_upper, wave_lowerarray[float]

The wavelength upper and lower boundaries of each pixel, given the central value.