FPAModel
- class stdatamodels.jwst.datamodels.FPAModel(init=None, nrs1_model=None, nrs2_model=None, **kwargs)
Bases:
ReferenceFileModelA model for a NIRSPEC reference file of type “fpa”.
Initialize the model.
- Parameters:
- initstr, None, optional
File name for input file in ASDF format from which to initialize the model.
- nrs1_model
Model, optional The transform from the NIRSpec focal plane array (FPA) to the camera for the NRS1 detector
- nrs2_model
Model, optional The transform from the NIRSpec focal plane array (FPA) to the camera for the NRS2 detector
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 = 'fpa'
- schema_url = 'http://stsci.edu/schemas/jwst_datamodel/fpa.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.