slits_wcs

jwst.assign_wcs.nirspec.slits_wcs(input_model, reference_files, slit_y_range)[source]

Create the WCS pipeline for MOS and fixed slits.

The coordinate frames are:

  • “detector”: the science frame

  • “sca”: frame associated with the SCA

  • “gwa”: just before the GWA going from detector to sky

  • “slit_frame”: frame associated with the virtual slit

  • “msa_frame”: at the MSA

  • “oteip”: after the FWA

  • “v2v3”: at V2V3

  • “world”: sky and spectral

Parameters:
input_modelJwstDataModel

The input data model.

reference_filesdict

Mapping between reftype (keys) and reference file name (vals). Requires the ‘msa’, ‘msametafile’, ‘disperser’, ‘wavelengthrange’, ‘fpa’, ‘camera’, ‘collimator’, ‘fore’, and ‘ote’ reference files.

slit_y_rangetuple

The slit Y-range for Nirspec slits, relative to (0, 0) in the center.

Returns:
pipelinelist

The WCS pipeline, suitable for input into gwcs.wcs.WCS.