NIRISSGrismModel

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

Bases: jwst.datamodels.ReferenceFileModel

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

Attributes Summary

reftype
schema_url

Methods Summary

populate_meta()
to_fits() Write a DataModel to a FITS file.
validate() Convenience function to be run when files are created.

Attributes Documentation

reftype = 'specwcs'
schema_url = 'specwcs_niriss_grism.schema.yaml'

Methods Documentation

populate_meta()[source]
to_fits()[source]

Write a DataModel to a FITS file.

Parameters:
  • init (file path or file object) –
  • kwargs (args,) – Any additional arguments are passed along to astropy.io.fits.writeto.
validate()[source]

Convenience function to be run when files are created. Checks that required reference file keywords are set.