Skip to content
Novus Examples
npy896 B

NumPy .npy — float64 2-D Grid (.npy)

The baseline .npy fixture: a 12x8 float64 array in version 1.0 format with a little-endian descriptor and the header padded to the mandatory 64-byte alignment. Every other array in this family varies exactly one property away from it.

Preview — schema + first 9 rowsnpy
FieldValue
dtypefloat64
descr in header<f8
shape(12, 8)
fortran_orderFalse
elements96
npy format version1.0 (2-byte header length)
Header alignment64 bytes, including the magic
value[0][0]np.float64(0.0)
value[11][7]np.float64(9.0)
Magic is \x93NUMPY; the header is a literal Python dict padded to a 64-byte boundary.

Specifications

Npy Version
1.0
Dtype
float64
Shape
12 x 8
Elements
96
Byte Order
little-endian
Fortran Order
false
Header Alignment
64

Testing contract

Expected to pass
Scenario
Parse the .npy header without numpy — read the magic, version, header length and the dict literal that follows.
Expected result
The magic is \x93NUMPY, the version bytes are 1 and 0, the header dict declares descr '<f8', fortran_order False and shape (12, 8), and the data begins on a 64-byte boundary.

What is a .npy file?

NPY is NumPy's native binary format for a single array. A short header records the dtype, shape, and memory order, followed by the raw array bytes, so an array round-trips exactly without any text parsing. It is the standard way to persist embeddings, tensors, and numeric matrices in the Python data stack.

How to use this file

Use an example .npy to test array loaders (numpy.load), tensor and embedding pipelines, and converters between .npy, JSON, and columnar formats like Parquet.

How to use this file for testing

“NumPy .npy — float64 2-D Grid (.npy)” 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: NPY · 896 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.