NIRISSGrismModel

class stdatamodels.jwst.datamodels.NIRISSGrismModel(init=None, displ=None, dispx=None, dispy=None, invdispl=None, orders=None, fwcpos_ref=None, **kwargs)

Bases: ReferenceFileModel

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

Initialize the model.

Parameters:
initstr, None, optional

File name for input file in ASDF format from which to initialize the model.

displ~astropy.modeling.Model

NIRISS Grism wavelength dispersion model

dispx~astropy.modeling.Model

NIRISS Grism row dispersion model

dispy~astropy.modeling.Model

NIRISS Grism column dispersion model

invdispl~astropy.modeling.Model

NIRISS Grism inverse wavelength dispersion model

orders~astropy.modeling.Model

NIRISS Grism orders, matched to the array locations of the dispersion models

fwcpos_reffloat

The reference value for the filter wheel position

**kwargs

Additional keyword arguments to pass to ReferenceFileModel

Attributes Summary

reftype

schema_url

The schema URI to validate the model against.

Methods Summary

populate_meta()

to_fits()

Write a data model to a FITS file.

validate()

Check that required reference file keywords are set.

Attributes Documentation

reftype = 'specwcs'
schema_url = 'http://stsci.edu/schemas/jwst_datamodel/specwcs_niriss_grism.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

populate_meta()
to_fits()

Write a data model to a FITS file.

Parameters:
initfile path or file object

The file to write to.

*args

Additional positional arguments passed to astropy.io.fits.writeto.

**kwargs

Additional keyword arguments passed to astropy.io.fits.writeto.

validate()

Check that required reference file keywords are set.