viscid.readers.ggcm_fortbin module

class viscid.readers.ggcm_fortbin.FortbinDataWrapper(file_wrapper, fld_name, expected_shape, file_position)[source]

Bases: viscid.readers.vfile.DataWrapper

Interface for lazily pointing to a field in a binary file

dtype
expected_shape = None
file_position = 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_fortbin.GGCMFileFortbinIono(filename, **kwargs)[source]

Bases: viscid.readers.ggcm_fortbin.GGCMFileFortbinMHD

Binary files

class viscid.readers.ggcm_fortbin.GGCMFileFortbinMHD(filename, **kwargs)[source]

Bases: viscid.readers.openggcm.GGCMFileFortran

Binary files

classmethod collective_name_from_group(fnames)[source]
class viscid.readers.ggcm_fortbin.GGCMFortbinFileWrapper(filename)[source]

Bases: object

A File-like object for interfacing with OpenGGCM binary files

close()[source]
fields_seen = None
file_meta
filename = 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.

isopen
open()[source]
read_field(fld_name, pos=None)[source]

Read a field given a seekable location

Parameters:
  • fld_name (str) – name of field we’re expecting to read
  • pos (int) – position in file we can seek to
Returns:

tuple (field name, dict of meta data, array)

seen_all_fields = None