process_slit

jwst.extract_2d.nirspec.process_slit(input_model, slit)[source]

Construct a data model for each slit.

Extract the data.

Parameters:
input_modelImageModel or CubeModel

Input data model. The cube model is used only for TSO data, i.e., NRS_BRIGHTOBJ exposure or internal lamp exposures with lamp_mode set to BRIGHTOBJ.

slitSlit

A slit object.

Returns:
new_modelSlitModel

The new data model for a slit.

xlo, xhi, ylo, yhifloat

The corners of the extracted slit in pixel space.