WaveCorrModel

class stdatamodels.jwst.datamodels.WaveCorrModel(init=None, apertures=None, **kwargs)

Bases: ReferenceFileModel

Wavelength zero-point correction for the position of a point source in a NIRSpec slit.

Initialize the model.

Parameters:
initstr, None, optional

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

apertureslist[dict], optional

Each aperture is a dict with keys: * aperture_name : str, the name of the aperture. * width : float, the aperture or pitch width in meters. * zero_point_offset : astropy.Tabular2D model,

a lookup table for the wavelength correction.

  • variance : the variance of the correction.

Attributes Summary

aperture_names

Return the names of the apertures.

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()

validate()

Check that required reference file keywords are set.

Attributes Documentation

aperture_names

Return the names of the apertures.

Returns:
list

A list of aperture names

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

Check that required reference file keywords are set.