Introduction
FITS is the standard data format of astronomy, first published in 1981 and maintained by the IAU FITS Working Group; version 4.0 of the standard dates from 2016. It stores images, data cubes and tables together with human-readable text headers that describe the instrument, the observation and the mapping from pixels to positions on the sky.
Each pixel is a measured value, such as a photon count, stored as an integer or a
floating point number. Observatories and space telescopes publish their data as FITS, and
astrophotographers use it to keep their raw frames. The extensions .fits,
.fit and .fts are all common.
Structure
A FITS file is a sequence of 2880-byte blocks grouped into header and data units
(HDUs). Each header is a list of 80-character ASCII lines called cards, in the form
KEYWORD = value / comment, ended by an END card and padded with
spaces to a whole block. The primary header must begin with SIMPLE =
T, then BITPIX (the data type: 8, 16, 32 or 64 for integers, -32 or -64
for floats), NAXIS and the size of each axis.
The data follows the header as big-endian numbers, padded to a whole block. Further
HDUs, called extensions, can hold more images (IMAGE) or tables
(TABLE for text and BINTABLE for binary).
The reference pages cover the header records and reserved keywords, the data types and scaling, the extensions with their table formats and compression, and the world coordinate keywords.
0Primary header 80-character cards, fromSIMPLEtoEND2880 × n bytes…Primary data the image or data cube, optional2880 × n bytes…Extensions repeated: a header, then its image or table2880 × n bytes
Not described
FITS is documented by the FITS 4.0 standard. These pages follow it; the parts below are not covered yet.
Known, not yet covered
- Reference: the bit-level coding of the Rice (RICE_1) and H-compress blocks, and the PLIO opcode table, which the standard names but, in the text read, does not lay out (extensions); the random group appendix and the full keyword summary appendix, which were not in the part of the standard re-read for this check.
- Reference: the keyword conventions registered outside the standard (HIERARCH and others).
- Viewer: none. The file opens as raw bytes only.
Links
Software
- SAOImageDS9 – free astronomical image viewer widely used for FITS (Windows, macOS, Linux)
- Siril – free astronomical image processing program that works in FITS (Windows, macOS, Linux)
- PixInsight – commercial astrophotography processing software (Windows, macOS, Linux)
- GIMP – free image editor that opens and exports FITS (Windows, macOS, Linux)
- ImageMagick – command-line tools that convert FITS images to other formats (Windows, macOS, Linux)
Developers
Reference
- FITS Support Office – NASA’s site with the FITS standard and its documentation