SpecwcsModel

class stdatamodels.jwst.datamodels.SpecwcsModel(init=None, model=None, input_units=None, output_units=None, **kwargs)

Bases: _SimpleModel

A model for a reference file of type “specwcs”.

Notes

For NIRISS and NIRCAM WFSS modes the specwcs file is used during extract_2D. See NIRCAMGrismModel and NIRISSGrismModel.

Initialize the model.

Parameters:
initstr, None, optional

The data from which to initialize the model. Can be of any type that is supported by DataModel.

modelastropy.modeling.core.Model or list[Model], optional

The transform as an astropy Model

input_unitsstr or ~astropy.units.NamedUnit, optional

The units of the input

output_unitsstr or ~astropy.units.NamedUnit, optional

The units of the output

Attributes Summary

reftype

schema_url

The schema URI to validate the model against.

Methods Summary

validate()

Run additional validations beyond schema validation for these model types.

Attributes Documentation

reftype = 'specwcs'
schema_url = 'http://stsci.edu/schemas/jwst_datamodel/specwcs.schema'

The schema URI to validate the model against. If None, only basic validation of required metadata properties (filename, model_type) will occur.

Methods Documentation

validate()

Run additional validations beyond schema validation for these model types.