get_slit_coordinates

msaexp.utils.get_slit_coordinates(slit, trace_with_ypos=False, **kwargs)[source]

Get wavelength and cross-dispersion coordinate arrays for a 2D slitlet

Parameters
slitSlitModel

Slitlet data object

trace_with_yposbool

Include source y position in trace calculation

Returns
wavearray-like

Wavelengths, microns

slit_frame_yarray-like

slit_frame cross dispersion coordinate

yslitarray-like

Pixel offset relative to the trace center