nrs_wcs_set_input
- jwst.assign_wcs.nrs_wcs_set_input(input_model, slit_name)[source]
Make a WCS object for a specific slit or slice.
Transforms in the new WCS do not require slit IDs on input and do not report slit IDs in the output.
If there is a compound bounding box set for the input model, a bounding box will be set for the slit WCS. Otherwise, the bounding box will be None.
- Parameters:
- input_modelJwstDataModel
A datamodel that contains a WCS object for the all open slitlets in an observation.
- slit_nameint or str
Slit.name of an open slit.
- Returns:
- wcsobj
WCS
WCS object for this slit.
- wcsobj