viscid.readers package¶
Submodules¶
- viscid.readers.ascii module
- viscid.readers.athena module
- viscid.readers.athena_bin module
- viscid.readers.athena_hst module
- viscid.readers.athena_tab module
- viscid.readers.athena_xdmf module
- viscid.readers.gkeyll module
- viscid.readers.ggcm_fortbin module
- viscid.readers.ggcm_jrrle module
- viscid.readers.ggcm_logfile module
- viscid.readers.ggcm_xdmf module
- viscid.readers.hdf5 module
- viscid.readers.numpy_binary module
- viscid.readers.openggcm module
- viscid.readers.psc module
- viscid.readers.vfile module
- viscid.readers.vfile_bucket module
- viscid.readers.vpic module
- viscid.readers.xdmf module
Module contents¶
Package for the various data readers
-
viscid.readers.
load_file
(fname, force_reload=False, **kwargs)[source]¶ Load a file
Parameters: - fnames (list) – single file name, or list of files that are part of the same time series. Glob patterns and slices are accepted, see Tips & Tricks for more info.
- fname (str) – a file name, relative to CWD
- force_reload (bool) – Force reload if file is already in memory
- **kwargs – passed to the VFile constructor
See also
Returns: A VFile instance
-
viscid.readers.
load_files
(fnames, force_reload=False, **kwargs)[source]¶ Load a list of files
Parameters: - fnames (list) – list of file names. Glob patterns and slices are accepted, see Tips & Tricks for more info.
- force_reload (bool) – Force reload if file is already in memory
- **kwargs – passed to the VFile constructor
See also
Returns: A list of VFile instances. The length may not be the same as the length of fnames, and the order may not be the same in order to accommodate globs and file grouping.
-
viscid.readers.
get_file
(handle)[source]¶ return a file that’s already been loaded by either number (as in nth file loaded), of file name
-
viscid.readers.
save_grid
(fname, grd, **kwargs)[source]¶ save a grid, filetype is inferred from fname