teuben / nemo

a Stellar Dynamics Toolbox (Not Everybody Must Observe)
https://astronemo.readthedocs.io
GNU General Public License v2.0
56 stars 40 forks source link

ccdfits fails on very large fits files #114

Closed teuben closed 5 months ago

teuben commented 1 year ago

example of failure:

  ccdgen  cube1 noise 0,1 1024,1024,1024
  ccdfits cube1 cube1.fits
  fitshead cube1.fits 

fitshead will then spit out garbage. The header appears incomplete.

teuben commented 5 months ago

The cause was some important variables in fitsio.c - offset and length related - that needed to be off_t instead of int. Old code (from miriad) that was never fully converted to 64bit. Fixed now.