nrs_wcs_set_input

jwst.assign_wcs.nrs_wcs_set_input(input_model, slit_name, wavelength_range=None)[source]

Returns a WCS object for a specific slit, slice or shutter.

Parameters
  • input_model (DataModel) – A WCS object for the all open slitlets in an observation.

  • slit_name (int or str) – Slit.name of an open slit.

  • wavelength_range (list) – Wavelength range for the combination of fliter and grating.

Returns

wcsobj – WCS object for this slit.

Return type

WCS