Skip to content
Novus Examples
fits2.8 KB

FITS Header-Only — Valid File With No Pixels (.fits)

A completely valid FITS file consisting of one 2880-byte header block and no data unit, which the standard permits whenever NAXIS is 0. It separates readers that model the data array as optional from readers that treat 'no pixels' as corruption.

Preview — schema + first 6 rowsfits
FieldValue
NAXIS0 — no data array
Data unit0 bytes; the file is exactly one 2880-byte header block
Validityfully conformant FITS, not corrupt
DATE-OBS2026-01-01T00:00:00 (fixed synthetic epoch)
EXPTIME30.0 s
Common bugreaders that require pixels reject this file
A legal FITS file with zero pixels — the boundary case between valid and empty.

Specifications

Bitpix
8
Naxis
0
Data Unit Bytes
0
Total Bytes
2880
Valid
true
Common Bug
treated as corrupt because the array is absent

Testing contract

Expected to pass
Scenario
Open the file and inspect the primary HDU without assuming a data array is present.
Expected result
The open succeeds, NAXIS reads 0, the data attribute is empty or None rather than an error, and the total file size is exactly 2880 bytes.

What is a .fits file?

FITS (.fits, Flexible Image Transport System) is the standard binary format in astronomy. It pairs human-readable 80-character header cards (in 2880-byte blocks) with binary image or table data, storing pixel arrays, coordinates, and instrument metadata. It has been the astronomical archive format for decades.

How to use this file

Use an example .fits file to test FITS readers (astropy, CFITSIO, DS9), header-card parsing, and image or table extraction, or to verify block-alignment handling.

How to use this file for testing

“FITS Header-Only — Valid File With No Pixels (.fits)” 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: FITS · 2,880 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.