HDF5 IO¶
-
simfiles._hdf5_io.
hdf5_get
(path, fbase, hpath, attr=None, ncpu=0, interval=None)[source]¶ Retrieve and assemble data from an hdf5 fileset.
Parameters: - path: str
Directory containing hdf5 file(s).
- fbase: str
Filename, omit ‘.X.hdf5’ portion.
- hpath: str
‘Internal’ path of data table to gather, e.g. ‘/PartType1/ParticleIDs’
- attr: str
Name of attribute to fetch (optional).
- ncpu: int
Read in parallel with the given cpu count (default: 0 -> all cpus).
- interval: tuple
Read a subset of a dataset in the given interval (2-tuple) of indices.
Returns: - out : DataSet or contents of attribute
Contents of requested dataset or attribute.