ScienceRawModel
- class roman_datamodels.datamodels.ScienceRawModel(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_tvac_raw(model)Convert TVAC/FPS into ScienceRawModel
Methods Documentation
- classmethod from_tvac_raw(model)[source]
Convert TVAC/FPS into ScienceRawModel
romancal supports processing a selection of files which use an outdated schema. It supports these with a bespoke method that converts the files to the new format when they are read in dq_init. This conversion does not do a detailed mapping between all of the new and old metadata, but instead opportunistically looks for fields with common names and assigns them. Other metadata with non-matching names is simply copied in place. This allows processing to proceed and preserves the original metadata, but the resulting files have duplicates of many entries.
- Parameters:
model (ScienceRawModel, TvacModel, FpsModel) – Model to convert from.
- Returns:
science_raw_model – The ScienceRawModel built from the input model. If the input was a ScienceRawModel, that model is simply returned.
- Return type: