NIRCAMGrismModel

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

Bases: jwst.datamodels.ReferenceFileModel

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

This reference file contains the models for wave, x, and y polynomial solutions that describe dispersion through the grism

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_nircam_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.