open
- roman_datamodels.datamodels.open(init, memmap=False, **kwargs)
- Datamodel open/create function.
This function opens a Roman datamodel from an asdf file or generates the datamodel from an existing one.
- Parameters:
init (str,
DataModel
,asdf.AsdfFile
) –- May be any one of the following types:
asdf.AsdfFile
instancestring indicating the path to an ASDF file
DataModel
Roman data model instance
memmap (bool) – Open ASDF file binary data using memmap (default: False)
- Return type: