process_slit
- jwst.extract_2d.nirspec.process_slit(input_model, slit)[source]
Construct a data model for each slit.
Extract the data.
- Parameters:
- input_model
ImageModelorCubeModel Input data model. The cube model is used only for TSO data, i.e.,
NRS_BRIGHTOBJexposure or internal lamp exposures withlamp_modeset toBRIGHTOBJ.- slit
Slit A slit object.
- input_model
- Returns:
- new_model
SlitModel The new data model for a slit.
- xlo, xhi, ylo, yhifloat
The corners of the extracted slit in pixel space.
- new_model