WfiWcsModel
- class roman_datamodels.datamodels.WfiWcsModel(init=None, **kwargs)[source]
Bases:
_RomanDataModelHandle the case where one passes in an already instantiated version of the model. In this case the constructor should just directly return the model.
Methods Summary
from_model_with_wcs(model[, l1_border])Extract the WCS information from an exposure model post-assign_wcs
Methods Documentation
- classmethod from_model_with_wcs(model, l1_border=4)[source]
Extract the WCS information from an exposure model post-assign_wcs
Construct a
WfiWcsModelfrom any model that is used post-assign_wcs step in the ELP pipeline. The WCS information is extracted out of the input model. The wcs-related meta information is copied verbatim from the input model.However, the WCS object itself is placed into the attribute ‘wcs_l2’. Furthermore, a modified GWCS, applicable to the Level 1 version of the input model, is created and stored in the attribute ‘wcs_l1’.
- Parameters:
model (ImageModel) – The input data model.
l1_border (int) – The extra border to add for the L1 wcs.
- Returns:
wfiwcs_model – The WfiWcsModel built from the input model.
- Return type: