Skip to content
Novus Examples
h511 KB

HDF5 Numeric dtype Zoo — Every Width at Its Limits (.h5)

Twelve datasets, one per numeric HDF5 type, each holding the extreme values of that type including the uint64 and int64 limits that do not survive a trip through a double. It is the fixture that exposes a reader which widens everything to float64 on the way in.

Preview — schema + first 6 rowsh5
DatasetdtypeExtreme value it carries
int8int8-128 and 127
uint64uint6418446744073709551615 (loses precision as a double)
int64int64-9223372036854775808
float16float16±65504, the half-precision maximum
float64float64±1.7976931348623157e308
complex128complex1283.5 - 2.25j
Twelve datasets, each carrying the limits of its own type — the widening bugs show up instantly.

Specifications

Datasets
12
Dtypes
int8..int64, uint8..uint64, float16/32/64, bool, complex128
Values Each
5
Includes Type Extremes
true
Uint64 Max
18446744073709551615
Int64 Min
-9223372036854775808

Testing contract

Expected to pass
Scenario
Read every dataset and compare both the reported dtype and the exact extreme values against the declared type limits.
Expected result
uint64 returns 18446744073709551615 exactly and int64 returns -9223372036854775808 exactly; a reader that routes integers through a double returns 18446744073709551616 and fails here.

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 Numeric dtype Zoo — Every Width at Its Limits (.h5)” is a deterministic Novus Examples fixture for Scientific data, Serialization testing, Error handling. 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: H5 · 11,264 bytes. 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.