bifrost_io_tools

File Purpose: misc. tools for reading directly from bifrost files

Functions

bifrost_infer_snapname_here([dir, exclude])

infer Bifrost snapname based on files in directory, if possible.

bifrost_snap_idl_files(snapname, *[, dir, ...])

return list of all Bifrost snapname_NNN.idl files in directory.

read_bifrost_meshfile(meshfile)

Parse Bifrost snapname_NNN.idl file into a dictionary.

read_bifrost_snap_idl(filename, *[, eval, ...])

Parse Bifrost snapname_NNN.idl file into a dictionary.

slice_bifrost_meshfile(meshfile, slices, *)

read Bifrost meshfile contents, slice by slices, output to dst (return as str if dst=None)

Classes

BifrostDataCutter(snap, bcalc, *[, new_snapname])

interface for creating new data files cut from existing data files.

BifrostScrVarPathsManager(snap, calc)

manages filepaths (as abspaths) and readable vars for a SCR_SNAP

BifrostVarPathsManager(snap, calc)

manages filepaths (as abspaths) and readable vars for a BifrostSnap.