viscid.readers.athena_tab module

Athena ascii file reader

class viscid.readers.athena_tab.AthenaTabDataWrapper(filename, fld_name, expected_shape, fld_number)[source]

Bases: viscid.readers.vfile.DataWrapper

dtype
expected_shape = None
filename = None
fld_name = None
fld_number = None
len()[source]
read_direct(*args, **kwargs)[source]
shape

zyx shape since that’s the shape __array__ returns

Type:Returns
class viscid.readers.athena_tab.AthenaTabFile(fname, crds=None, fld_list=None, **kwargs)[source]

Bases: viscid.readers.athena.AthenaFile, viscid.readers.vfile_bucket.ContainerFile

An Athena ascii file reader

classmethod collective_name_from_group(fnames)[source]
classmethod group_fnames(fnames)[source]

Group File names

The default implementation just returns fnames, but some file types might do something fancy here

Parameters:fnames (list) – names that can be logically grouped, as in a bunch of file names that are different time steps of a given run
Returns:A list of things that can be given to the constructor of this class
load(fname)[source]
static parse_header(fname)[source]
classmethod read_crds(fname, dims=None)[source]