load_wcs

jwst.assign_wcs.assign_wcs.load_wcs(input_model, reference_files=None, nrs_slit_y_range=None, nrs_ifu_slice_wcs=False)[source]

Create a gWCS object and store it in Model.meta.

Parameters:
input_modelJwstDataModel

The input data model. Updated in place.

reference_filesdict

Mapping between reftype (keys) and reference file name (vals).

nrs_slit_y_rangelist

The slit y-range for a NIRSpec slit. The center is (0, 0).

nrs_ifu_slice_wcsbool

If True and the exposure type is NIRSpec IFU, then a full slice-based WCS that propagates slice IDs is produced. This is intended primarily for diagnostic purposes. If False and the exposure type is NIRSpec IFU, a slice map is internally applied to produce a fully coordinate-based WCS pipeline that does not require slice IDs on input.

Returns:
input_modelJwstDataModel

The data model with the WCS information in the meta attribute.