esheldon / fitsio

A python package for FITS input/output wrapping cfitsio
GNU General Public License v2.0
134 stars 58 forks source link

Issues opening fits file #321

Closed vvinuv closed 3 years ago

vvinuv commented 3 years ago

Hello,

I have a sextractor generated segmentation fits file which is attached here. This file doesn't open with the simple lines. i.e.

fits = fitsio.FITS('seg.fits', 'r') seg = fits[0].read() fits.close()

seg doesn't have any data. However, DS9 can open seg.fits and shows the images. I am using fitsio version 1.1.4 on macos

vvinuv commented 3 years ago

seg.fits.tar.gz

vvinuv commented 3 years ago

I think the way I make segmentation fits causes the issue.