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

classmethod collective_name_from_group(fnames)[source]
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
len()[source]
read_direct(*args, **kwargs)[source]
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(fld_name)[source]
inquire_all_fields(reinquire=False)[source]
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