viscid.readers.ggcm_jrrle module¶
-
class
viscid.readers.ggcm_jrrle.
GGCMFileJrrleIono
(filename, **kwargs)[source]¶ Bases:
viscid.readers.ggcm_jrrle.GGCMFileJrrleMHD
Jimmy’s run length encoding files
-
class
viscid.readers.ggcm_jrrle.
GGCMFileJrrleMHD
(filename, **kwargs)[source]¶ Bases:
viscid.readers.openggcm.GGCMFileFortran
Jimmy’s run length encoding files
-
class
viscid.readers.ggcm_jrrle.
JrrleDataWrapper
(file_wrapper, fld_name, expected_shape)[source]¶ Bases:
viscid.readers.vfile.DataWrapper
Interface for lazily pointing to a jrrle field
-
dtype
¶
-
expected_shape
= None¶
-
file_wrapper
= None¶
-
filename
= None¶
-
fld_name
= None¶
-
shape
¶ zyx shape since that’s the shape __array__ returns
Type: Returns
-
-
class
viscid.readers.ggcm_jrrle.
JrrleFileWrapper
(filename)[source]¶ Bases:
viscid.readers._fortfile_wrapper.FortranFile
Interface for actually opening / reading a jrrle file
-
fields_seen
= None¶
-
inquire_next
()[source]¶ Collect the meta-data from the next field in the file
Returns: tuple (field name, dict of meta data) both of which will be None if there are no more Fields Note
After this operation is done, the file-pointer will be reset to the position it was before the inquiry.
-
read_field
(fld_name, ndim)[source]¶ Read a field given a seekable location
Parameters: - loc (int) – position in file we can seek to
- ndim (int) – dimensionality of field
Returns: tuple (field name, dict of meta data, array)
-
seen_all_fields
= None¶
-