Skip to content
Novus Examples
fits5.6 KB

FITS with World Coordinate System — Tangent Plane (.fits)

A 32-bit integer image carrying a complete tangent-plane WCS: 1-based CRPIX reference pixels, a deliberately negative CDELT1 so right ascension runs the other way, and an ICRS frame. It targets the two mistakes every WCS implementation makes first, the 1-based origin and the flipped axis.

Preview — schema + first 5 rowsfits
KeywordValueMeaning
CTYPE1 / CTYPE2RA---TAN / DEC--TANgnomonic tangent-plane projection
CRPIX1 / CRPIX212.5 / 8.5reference pixel, 1-BASED (not 0-based)
CRVAL1 / CRVAL2202.484167 / 47.230556sky coordinates at that pixel, degrees
CDELT1 / CDELT2-0.000277778 / 0.0002777781 arcsec per pixel; axis 1 runs backwards
RADESYSICRSreference frame
CRPIX is 1-based and CDELT1 is negative — the two classic off-by-one/flip bugs.

Specifications

Bitpix
32
Projection
TAN (gnomonic)
Crpix1
12.5
Crpix2
8.5
Crval1
202.484167
Crval2
47.230556
Cdelt1
-0.000277778
Cdelt2
0.000277778
Pixel Scale Arcsec
1
Indexing
1-based

Testing contract

Expected to pass
Scenario
Convert pixel (12.5, 8.5) to world coordinates using the header, then convert one pixel further along axis 1.
Expected result
The reference pixel maps to RA 202.484167 and Dec 47.230556 degrees, and stepping +1 pixel on axis 1 DECREASES RA by 0.000277778 degrees because CDELT1 is negative.

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 with World Coordinate System — Tangent Plane (.fits)” 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: 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.