Data formats

FITS TFORM row layout

Map binary-table columns to fixed row-byte offsets, including bit fields and heap descriptors.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Multiply fixed-type widths by their repeat counts; round X bit fields up to a whole byte. P and Q use 8- and 16-byte descriptors; their heap data is outside the row.

3J occupies 12 bytes, 10X occupies 2, and 1PE(100) occupies 8. The row totals 22 bytes.

Limits

Standard BINTABLE forms only; up to 999 columns. P/Q repeat is 0 or 1. CFITSIO substring suffixes and ASCII-table forms are excluded. Exact row arithmetic does not validate a FITS header, heap allocation, scaling or null values.