set_slit_attributes

jwst.extract_2d.nirspec.set_slit_attributes(output_model, slit, xlo, xhi, ylo, yhi)[source]

Set the slit attributes.

Parameters:
output_modelSlitModel

The output model representing a slit.

slitSlit

An object representing a slit.

xlo, xhi, ylo, yhifloat

Indices into the data array where extraction should be done. These are converted to “pixel indices” - the center of a pixel.