h5totxt is a utility to generate comma-delimited text (and similar
formats) from one-, two-, or more-dimensional slices of numeric
datasets in HDF5 files. This way, the data can easily be imported
into spreadsheets and similar programs for analysis and visualization.
HDF5 is a free, portable binary format and supporting library developed
by the National Center for Supercomputing Applications at the University
of Illinois in Urbana-Champaign. A single
h5 file can contain multiple data sets; by default,
h5totxt takes the first dataset, but this can be changed via the
-d option, or by using the syntax HDF5FILE:DATASET.
By default, the entire dataset is dumped to the output. in row-major
order. For 3d datasets, this corresponds to a sequence of yz slices,
in order of increasing x, separated by blank lines. If
-T is specified, outputs in the transposed (column-major) order instead
Often, however, you want only a one- or two-dimensional slice of
multi-dimensional data. To do this, you specify coordinates in one or
more slice dimensions, via the
The most basic usage is something like 'h5totxt foo.h5', which will
output comma-delimited text to stdout from the data in foo.h5.