View Single Post
  #1  
Old June 30th 10, 11:52 AM posted to sci.astro.fits
Yannick Copin
external usenet poster
 
Posts: 1
Default Extra byte(s) after last HDU

Hi,

I have a table that was generated with cfitsio (whatever version, does
not seem to make any difference). Unfortunately, it seems to be non-
FITS compliant, according to http://fits.gsfc.nasa.gov/fits_verify.html:

End-of-File
*** Error: File has extra byte(s) after last HDU at byte 20160.

I don't have the slightest idea what is causing this in the first
place. fv and cfitsio do not have any problem opening and using the
file, but latest pyfits will complain about "Header missing END card",
while there *is* a END card... Comparing the original file to the
pyfits-generated FITS-compliant file, the difference are just 2880
null bytes.

Is there a way to clean the original fits file to remove the extra
useless bytes?

Cheers.

PS: let me know if you want me to send you a copy of the file.