CEOS Panta Rhei (PRZ)#
RosettaSciIO can read and write .prz
files used by the CEOS Panta Rhei software.
The .prz
files are based on open formats (numpy arrays and python dictionaries)
so a complete support is in principle possible.
However, as new features are continuously being added to Panta Rhei, it is also
possible to occasionally encounter some which are not yet supported by RosettaSciIO.
Please report any problematic file on the issues tracker to make us aware of it.
API functions#
- rsciio.pantarhei.file_reader(filename, lazy=False)#
Read a PantaRhei
.prz
file.- Parameters:
- filename
str
,pathlib.Path
Filename of the file to read or corresponding pathlib.Path.
- lazybool, default=False
Lazy loading is not supported.
- filename
- Returns:
list
ofdict
List of dictionaries containing the following fields:
‘data’ – multidimensional
numpy.ndarray
ordask.array.Array
‘axes’ – list of dictionaries describing the axes containing the fields ‘name’, ‘units’, ‘index_in_array’, and either ‘size’, ‘offset’, and ‘scale’ or a numpy array ‘axis’ containing the full axes vector
‘metadata’ – dictionary containing the parsed metadata
‘original_metadata’ – dictionary containing the full metadata tree from the input file
- rsciio.pantarhei.file_writer(filename, signal)#
Write signal to PantaRhei
.prz
format.- Parameters:
- filename
str
,pathlib.Path
Filename of the file to write to or corresponding pathlib.Path.
- signal
dict
Dictionary containing the signal object. Should contain the following fields:
‘data’ – multidimensional numpy array
‘axes’ – list of dictionaries describing the axes containing the fields ‘name’, ‘units’, ‘index_in_array’, and either ‘size’, ‘offset’, and ‘scale’ or a numpy array ‘axis’ containing the full axes vector
‘metadata’ – dictionary containing the metadata tree
- filename