[fitsbits] TFORM=1D mixed with TDISP=I12 {External}

Richard J. Mathar mathar at mpia-hd.mpg.de
Mon Jun 23 05:07:22 EDT 2025


In the header of HDU 2 of the FITS file iter_c.fit of the source code of cfitsio,
fitsverify complains about the mixture of 
TFORM4=1D and TDISP4=I12 : 

uname at comp:~/work/rpmbuild/cfitsio/cfitsio> fitsverify iter_c.fit
 
              fitsverify 4.22 (CFITSIO V4.050)              
              --------------------------------              
 
 
File: iter_c.fit

2 Header-Data Units in this file.
 
=================== HDU 1: Primary Array ===================
 
 9 header keywords
 
 Null data array; NAXIS = 0 
 
=================== HDU 2: BINARY Table ====================
 
*** Error:   Keyword #89, TDISP4:  Format "I12" cannot be used for TFORM "1D".
 
 97 header keywords
 
 EVENTS(1)  (5 columns x 5000 rows)
 
 Col# Name (Units)       Format
   1 X                    1I        
   2 Y                    1I        
   3 PHA                  1I        
   4 TIME                 1D        
   5 DY                   1I        
 
++++++++++++++++++++++ Error Summary  ++++++++++++++++++++++
 
 HDU#  Name (version)       Type             Warnings  Errors
 1                          Primary Array    0         0     
 2     EVENTS (1)           Binary Table     0         1     
 
**** Verification found 0 warning(s) and 1 error(s). ****

Is this actually inconsistent?  That should be at most a warning, not an error, because
the storage of the data in the floaing point format should not prevent to render them
as (truncated) integers. fv actually displays the values as integers, as expected.



More information about the fitsbits mailing list