Skip to content
Novus Examples
nc808 B

NetCDF Time Axes — Epochs, Units and Calendars (.nc)

Three CF time coordinates over the same six records: hours from the Unix epoch, days from 2026-01-01, and the same days under a 365_day calendar. A decoder that assumes one epoch, or ignores the calendar attribute, dates the records wrongly without raising anything.

Preview — schema + first 4 rowsnc
VariableUnitsCalendarFirst valueDecodes to
timehours since 1970-01-01 00:00:00proleptic_gregorian4908962026-01-01T00:00:00Z
time_daysdays since 2026-01-01 00:00:00proleptic_gregorian0.02026-01-01T00:00:00Z
time_noleapdays since 2026-01-01 00:00:00365_day0.02026-01-01 (no-leap calendar)
pressurePa-101325.0one standard atmosphere
Three time coordinates over the same six records; only the attributes tell them apart.

Specifications

Records
6
Time Variables
3
Units
hours since 1970-01-01; days since 2026-01-01
Calendars
proleptic_gregorian, 365_day
Data Variable
pressure (Pa)

Testing contract

Expected to pass
Scenario
Decode each time coordinate to real timestamps using its own units and calendar attributes.
Expected result
All three resolve to 2026-01-01T00:00:00Z onward at six-hour steps — 490896 hours from the Unix epoch is the same instant as day 0 of 2026 — and time_noleap reaches those civil dates under a no-leap calendar.

What is a .nc file?

NetCDF (.nc, Network Common Data Form) is a binary, self-describing format for array-oriented scientific data. It stores multidimensional variables (like temperature over latitude, longitude, and time) with named dimensions, units, and metadata attributes, and is a standard in climate, ocean, and geoscience.

How to use this file

Use an example .nc file to test NetCDF readers (netCDF4, xarray, Panoply), CF-convention validators, and gridded-data pipelines, or to verify dimension and variable extraction.

How to use this file for testing

“NetCDF Time Axes — Epochs, Units and Calendars (.nc)” 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: 6 records. 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.