Skip to content
Novus Examples
fits5.6 KB

FITS Image — float32 with NaN and Inf Pixels (.fits)

Single-precision FITS pixels including two NaNs, which is the only way the standard marks undefined data for floating BITPIX, plus one +Inf. Statistics computed without NaN-aware reductions come back as NaN for the entire frame.

Preview — schema + first 4 rowsfits
PixelValueMeaning
[0,0]NaNundefined — the only blank convention legal for float BITPIX
[15,23]NaNundefined
[8,12]+Infsaturated / overflowed, still a legal IEEE-754 value
all others120 to 1500flux density in Jy/beam
Big-endian IEEE-754 singles: a naive min/max or sum propagates NaN through the whole image.

Specifications

Bitpix
-32
Nan Pixels
2
Inf Pixels
1
Bunit
Jy/beam
Byte Order
big-endian IEEE-754
Total Pixels
384

Testing contract

Expected to pass
Scenario
Read the array and compute the minimum, maximum and mean using NaN-aware reductions.
Expected result
Exactly two pixels are NaN and one is +Inf; NaN-aware statistics return finite minimum and mean while a plain mean over the raw array returns NaN.

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 Image — float32 with NaN and Inf 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 · 5,760 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.