Skip to content
Novus Examples
zip2.2 KB

NumPy .npz-style Bundle — Five Arrays, Stored (.zip)

An npz-style bundle: a ZIP whose members are .npy files, which is exactly what NumPy's savez produces. np.load opens it by ZIP magic rather than by extension, so the arrays load straight from this .zip; rename it to .npz for tooling that checks the suffix.

Archive contents — 5 entrieszip
  • temperature_K.npy
  • lat_degrees_north.npy
  • lon_degrees_east.npy
  • time_hours.npy
  • uncertainty_K.npy

Specifications

Members
5
Compression
stored (no deflate)
Member Format
.npy version 1.0
Loadable By
np.load — it detects ZIP by magic, not extension
Extension Note
rename to .npz for tools that insist on the extension
Arrays
temperature_K, lat, lon, time, uncertainty_K

Testing contract

Expected to pass
Scenario
Open the file with np.load and list the archive keys, then read the temperature array from it.
Expected result
Five keys are reported without their .npy suffix, temperature_K comes back as (4, 5, 6) float32, and the members are stored uncompressed so their sizes match the raw .npy files.

What is a .zip file?

ZIP is a widely supported archive format that bundles multiple files and directories into one container, typically with per-file DEFLATE compression and a central directory index. It supports random access to individual entries without decompressing the whole archive. It underlies many document formats such as DOCX and EPUB.

How to use this file

Use an example ZIP to test archive extraction, central-directory parsing, per-entry decompression, and protection against path-traversal (zip-slip) during unpacking.

How to use this file for testing

“NumPy .npz-style Bundle — Five Arrays, Stored (.zip)” is a deterministic Novus Examples fixture for Scientific data, Serialization testing, Conversion 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: ZIP · 2,240 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.

Code examples

unzip -l npz-style-bundle-stored.zip     # list members
unzip npz-style-bundle-stored.zip -d out/  # extract

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