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,
Path,DataModel,asdf.AsdfFile, file-like) –- May be any one of the following types:
asdf.AsdfFileinstancestring or
Pathindicating the path to an ASDF fileDataModelRoman data model instancefile-like object compatible with
asdf.open
memmap (bool) – Open ASDF file binary data using memmap (default: False)
- Return type: