From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:FITS" |
|---|
| claim | "A FITS primary HDU begins with the 30 bytes 'SIMPLE =' + 20 spaces + 'T' (card columns 1-30: keyword, '= ', logical true right-justified in column 30). astropy identifies a FITS file by comparing the first 30 bytes with this string, and when opening is lenient: it checks the first 80-byte card, accepts T or F in column 30, and falls back to a regex SIMPLE\s*=\s*[TF]." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:FITS" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "53 49 4D 50 4C 45 20 20 3D 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54" |
|---|
| offset | "0x0" |
|---|
| meaning | "SIMPLE = T : primary HDU of a FITS file (extensions start with XTENSION instead)" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Read FITS_SIGNATURE = b"SIMPLE = T" and the relaxed signature check; is_fits in astropy/io/fits/connect.py lines 60-67 compares 30 bytes." |
|---|
| repo | "https://github.com/astropy/astropy" |
|---|
| commit | "a64a40bae76a201629e73ac0de0b1b85c353264a" |
|---|
| path | "astropy/io/fits/hdu/hdulist.py" |
|---|
| lines | "40, 1222-1236" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "SIMPLE card signature" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T04:53:38.329Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:21:22.707Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read astropy hdulist.py line 40 (FITS_SIGNATURE) and 1222-1236 (80-byte read, first 29 bytes plus T or F, regex fallback) and connect.py is_fits (reads 30 bytes and compares with FITS_SIGNATURE) at the commit." |
|---|
|
|
|---|