DisperserModel

class stdatamodels.jwst.datamodels.DisperserModel(init=None, angle=None, gwa_tiltx=None, gwa_tilty=None, kcoef=None, lcoef=None, tcoef=None, pref=None, tref=None, theta_x=None, theta_y=None, theta_z=None, groovedensity=None, **kwargs)

Bases: ReferenceFileModel

A model for a NIRSPEC reference file of type “disperser”.

Initialize the model.

Parameters:
initstr, None, optional

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

anglefloat, optional

Angle between the front surface and back surface of the prism in degrees

gwa_tiltx, gwa_tiltyfloat, optional

Angles in x, y between the grating surface and the reference surface (MIRROR) in degrees

kcoeflist, optional

Coefficients K1, K2, and K3 to describe the material of the prism

lcoeflist, optional

Coefficients L1, L2, and L3 to describe the material of the prism

tcoeflist, optional

Six constants (D0, D1, D2, E0, E1 and lambda_k) to describe the thermal behavior of the glass

preffloat, optional

Pressure (in atm) to compute the change in temperature relative to the reference temperature of the prism glass

treffloat, optional

Temperature (in Kelvin) to compute the change in temperature relative to the reference temperature of the prism glass

theta_x, theta_y, theta_zfloat, optional

Element alignment angles in the x-, y-, and z-axes in arcseconds

groovedensityfloat, optional

Number of grooves per meter

**kwargs

Additional keyword arguments to pass to ReferenceFileModel.

Attributes Summary

reftype

schema_url

The schema URI to validate the model against.

Methods Summary

on_save([path])

Run a hook before writing a model to a file (FITS or ASDF).

populate_meta()

to_fits()

Write a data model to a FITS file.

validate()

Check that required reference file keywords are set.

Attributes Documentation

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

on_save(path=None)

Run a hook before writing a model to a file (FITS or ASDF).

Parameters:
initstr

The path to the file that we’re about to save to.

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.