DistortionMRSModel
- class stdatamodels.jwst.datamodels.DistortionMRSModel(init=None, x_model=None, y_model=None, alpha_model=None, beta_model=None, bzero=None, bdel=None, input_units=None, output_units=None, **kwargs)
Bases:
ReferenceFileModel
A model for a reference file of type “distortion” for the MIRI MRS.
Initialize the model.
- Parameters:
- initstr, None, optional
File name for input file in ASDF format from which to initialize the model.
- x_modelastropy.modeling.core.Model, optional
Transform between the ‘detector’ frame and the frame associated with the local channel cube ‘alpha’
- y_modelastropy.modeling.core.Model, optional
Transform between the ‘detector’ frame and the frame associated with the local channel cube ‘beta’
- alpha_modelastropy.modeling.core.Model, optional
Transform between the local channel frame and the global instrument frame on the sky
- beta_modelastropy.modeling.core.Model, optional
Transform between the local channel frame and the global instrument frame on the sky
- bzerofloat, optional
Center of each slice in the local channel frame.
- bdelfloat, optional
Slice width in the local channel frame.
- input_unitsstr or ~astropy.units.NamedUnit, optional
The units of the input
- output_unitsstr or ~astropy.units.NamedUnit, optional
The units of the output
Attributes Summary
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).
to_fits
()Write a data model to a FITS file.
validate
()Check that required reference file keywords are set.
Attributes Documentation
- reftype = 'distortion'
- schema_url = 'http://stsci.edu/schemas/jwst_datamodel/distortion_mrs.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.