FITS BINTABLE — Typed Columns with TUNIT (.fits)
A FITS binary table with four typed columns, big-endian numerics packed with no inter-field padding and TUNIT declaring milli-jansky on the two flux columns. It is the fixture for a table reader that has to build a row struct from TFORM codes rather than guess widths.
| Column | TFORM | TUNIT | Type |
|---|---|---|---|
| SRC_ID | 1J | - | 32-bit big-endian integer |
| FLUX | 1E | mJy | 32-bit big-endian float |
| FLUX_ERR | 1E | mJy | 32-bit big-endian float |
| BAND | 8A | - | 8-byte space-padded ASCII |
Specifications
- Extension
- BINTABLE
- Rows
- 12
- Fields
- 4
- Row Bytes
- 20
- Tform
- 1J, 1E, 1E, 8A
- Tunit
- mJy on FLUX and FLUX_ERR
- Byte Order
- big-endian
- Seed
- 20260814
Testing contract
Expected to pass- Scenario
- Read the BINTABLE extension and reconstruct all four columns using the TFORM codes and NAXIS1 row width.
- Expected result
- You get 12 rows of 20 bytes, SRC_ID counts 1..12, FLUX_ERR is five percent of FLUX to within float32 precision, and BAND cycles g/r/i as 8-byte space-padded strings.
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 BINTABLE — Typed Columns with TUNIT (.fits)” is a deterministic Novus Examples fixture for Scientific data, Serialization testing, Data import. 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: seed 20260814 · 12 rows · 4 fields. 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.
Related files
- h5HDF5 Compound Record dtype — Mixed Field Types (.h5)A compound-dtype dataset mixing an integer key, two float measurements, a fixed-width byte string and a boolean flag in a single record. It is the fixture for readers that must map an HDF5 record type onto a native struct without reordering or repadding the fields.

- npyNumPy .npy — Structured Record Array with Units in Field Names (.npy)A 16-record structured array carrying a value, its uncertainty and a quality flag, with the physical unit encoded in the field-name suffix because .npy has nowhere else to put it. The header descriptor is a list of field tuples rather than a single type string, which is the parsing branch this file exercises.

- fitsFITS BLANK — Undefined Integer Pixels (.fits)Integer FITS images mark undefined pixels with the BLANK keyword, and BLANK is compared against the stored value before BZERO and BSCALE are applied. Scale first and the four undefined pixels turn into a perfectly plausible zero, which is the ordering bug this file exists to expose.

- fitsFITS Image — BITPIX 16 with BZERO Unsigned Trick (.fits)FITS has no unsigned 16-bit type, so unsigned data is stored signed with BZERO = 32768 and recovered as BZERO + BSCALE * stored. Every stored value in this image is negative, so a reader that ignores the scaling returns an entirely negative frame while parsing the file perfectly.

- fitsFITS Image — BITPIX 8 Unsigned Bytes (.fits)The baseline rung of the BITPIX ladder: a 24x16 synthetic star field stored as unsigned bytes, the one integer width FITS holds without a BZERO shift. Every image in this family carries the same scene so a decoder can be scored across data types.

- fitsFITS 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.

Generated by generation/scientific.py. Free for any use, no attribution required — license.