slit_trace_center¶
- msaexp.utils.slit_trace_center(slit, with_source_xpos=False, trace_center=0.0, with_source_ypos=True, index_offset=0.0)[source]¶
Get detector coordinates along the center of a slit
- Parameters
- slit
SlitModel Slit object
- with_source_xposbool
Apply wavelength correction based on source centering within the shutter assuming
source_type = POINT- trace_centerfloat
Center in slit coordinates
- with_source_yposbool
Get center of trace accounting for source y offset in the shutter
- index_offsetfloat
Index offset applied to the trace center
- slit
- Returns
- xarray-like
x pixel along trace
- ytrarray-like
y pixel along trace
- wtrarray-like
wavelength along trace, microns
- rs, dsfloat
Expected sky coordinates at center of the trace