Skip to content
Novus Examples
h514.4 KB

HDF5 Experiment Hierarchy — raw, processed, metadata (.h5)

A three-group HDF5 file laid out the way a real bench run is — raw arrays, a processed derivative that names its source in a derived_from attribute, and a metadata group — with units on every dataset. It is the walk-the-tree fixture: a reader has to recurse rather than assume a flat namespace.

Preview — schema + first 4 rowsh5
PathShapedtypeunits
/raw/detector_counts(32, 8)float64counts
/raw/timestamp_s(32,)float64s
/processed/normalised(32, 8)float641
/metadata/channel_index(8,)int321
Root attrs: title, schema_version, seed. /processed/normalised records derived_from.

Specifications

Groups
3
Datasets
4
Root Attributes
3
Shape
32 x 8 detector counts
Units On Every Dataset
true
Seed
20260818
Provenance Attribute
derived_from

Testing contract

Expected to pass
Scenario
Recursively walk the file and collect every dataset path together with its units attribute.
Expected result
You find exactly four datasets under three groups, each carries a units attribute, and /processed/normalised equals /raw/detector_counts divided by 1000 to six decimals.

What is a .h5 file?

HDF5 (.h5) is a binary container format for large, heterogeneous scientific data. It stores multidimensional arrays (datasets) in a hierarchical group structure with attributes and chunked, compressed storage, and is standard in ML, physics, and geoscience.

How to use this file

Use an example .h5 file to test HDF5 readers (h5py, PyTables), group and dataset traversal, and attribute extraction.

How to use this file for testing

“HDF5 Experiment Hierarchy — raw, processed, metadata (.h5)” is a deterministic Novus Examples fixture for Scientific data, Serialization testing. Citation catalogs (BibTeX, RIS), chemistry structures (MDL Molfile, PDB), and gridded binary data (NetCDF, FITS) — for testing reference managers, molecule viewers, and scientific-data loaders.

Documented properties for this file: seed 20260818. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Scientific fixtures are small, valid, and fully synthetic — no real organism, patient, sample, or observation. Point your parser or loader at the file and check it reads the documented records, variables, or headers; binary formats ship a readable twin or metadata listing for comparison.

Generated by generation/scientific.py. Free for any use, no attribution required — license.