extract_slit

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

Extract a slit from a full-frame image.

Parameters:
input_modelImageModel or CubeModel

The input model.

slitSlit

A slit object.

Returns:
new_modelSlitModel

The slit data model with WCS attached to it.