HDF5 h5dump
$ h5dump Foundation Low Riskh5dump is the official HDF5 utility from The HDF Group for examining .h5 / .hdf5 containers—printing object headers (-H), slicing specific datasets (-d), or exporting XML (-x) and binary/ASCII outputs (-o).
brew install hdf5 Inspects HDF5 group hierarchies, tensor shapes, and attributes (h5dump -H) locally without writing Python h5py scripts.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Non-interactive, but emits custom HDF5 DDL text or verbose -x XML with zero JSON support, and bare h5dump file.h5 floods stdout with full arrays.
- No JSON output (DDL text or
-xXML only) - Unbounded stdout dump unless
-Hor-s/-cslicing is passed
Strictly read-only inspection unless -o <file> is explicitly used to export dataset values.
- Read-only inspection; explicit
-ofor file export
Available via Homebrew and system package managers, though tied to native HDF5 C library builds.
- Native C toolchain (
brew install hdf5)
Handy for quick -H header/shape checks on ML/scientific .h5 files, though h5py or vitables is needed for structured JSON transforms.
- Fast header (
-H) and hyperslab (-d -s -c) inspection
Maintained by The HDF Group (HDFGroup/hdf5) under permissive BSD-style license.
- Official
HDFGroup/hdf5repository
Legacy reference manuals with dense hyperslab flag syntax (-s, -S, -c, -k) that agents easily misquote.
- Dense legacy CLI syntax in HDF Group docs
Security, Auth & Guardrails
None; operates purely on local .h5 / .hdf5 files.
Permissive BSD-style open-source license from The HDF Group; completely free.
# HDF5 h5dump Agent Rules - ALWAYS pass `-H` (header-only) or `-n` first; running `h5dump file.h5` without `-H` dumps every array element to stdout. - Use `-d <dataset_path>` with hyperslab slicing (`-s`, `-c`) when reading values.
Agent-Ready Command Recipes
Safe Read-Only Queries
h5dump -H model.h5
Prints groups, dataset paths, datatypes, and dimensions (-H header-only) without dumping multi-megabyte tensor values.
h5dump -d /metrics/loss -s 0 -c 10 results.h5
Selects dataset /metrics/loss with hyperslab start (-s) and count (-c) bounds.
Controlled Writes & Previews
h5dump -d /table/values -y -o values.txt data.h5
Writes raw values (suppressing indices with -y) to values.txt.
Strengths for Agents
- +
h5dump -Hinspects deep HDF5 group hierarchies and tensor dimensions without touching array payloads. - + Standard pre-installed or package-managed utility in HPC and ML environments.
Caveats & Pitfalls
- ! Zero JSON output—only HDF5 DDL text or XML (
-x). - ! Running
h5dump <file>without-Hcan print millions of floating-point numbers into agent context. - ! Flag ordering matters (e.g.,
-Hmust precede-din older releases).