slice_bifrost_meshfile
- PlasmaCalcs.hookups.bifrost.bifrost_io_tools.slice_bifrost_meshfile(meshfile, slices, *, dst=None)
read meshfile contents, slice by slices, output to dst (return as str if dst=None)
meshfile: str, path to mesh file slices: dict of {x: indexer} for any x from (‘x’, ‘y’, ‘z’).
currently, implementation requires all provided indexers to be slice objects.- dst: None or str.
- None –> return output as a string.str –> write output to file with this name; return abspath to dst.(never overwrites existing output; dst must be a file that doesn’t exist yet.)