NRMDefinition
- class jwst.ami.mask_definition_ami.NRMDefinition(nrm_model, maskname='jwst_ami', chooseholes=None)[source]
Bases:
objectDefines the geometry of the NRM mask.
Set attributes of NRMDefinition class.
Get hole centers and other mask geometry details from NRMModel, apply rotations/flips as necessary and set them as attributes.
- Parameters:
- nrm_modelNRMModel
Datamodel containing NRM reference file data
- masknamestr
Identifier for mask geometry; default ‘jwst_ami’, optional
- chooseholeslist
None, or e.g. [‘B2’, ‘B4’, ‘B5’, ‘B6’] for a four-hole mask, optional If None, use real seven-hole mask
Methods Summary
read_nrm_model(nrm_model[, chooseholes])Calculate hole centers with appropriate rotation.
Methods Documentation
- read_nrm_model(nrm_model, chooseholes=None)[source]
Calculate hole centers with appropriate rotation.
- Parameters:
- nrm_modelNRMModel
Datamodel containing NRM reference file data
- chooseholeslist, optional
List of hole names, e.g. [‘B2’, ‘B4’, ‘B5’, ‘B6’] for a four-hole mask. If None, use all the holes in the real seven-hole mask.
- Returns:
- f2ffloat
Flat-to-flat distance of mask holes
- ctrs_asbuiltarray
Actual hole centers [meters]