Closed karlwessel closed 3 years ago
It works for me with this FITS file, compressed with gzip
:
julia> using FITSIO
julia> FITS("WFPC2u5780205r_c0fx.fits.gz")
File: WFPC2u5780205r_c0fx.fits.gz
Mode: "r" (read-only)
HDUs: Num Name Type
1 Image
2 u5780205r_cvt.c0h.tab ASCIITable
But 99% this is an upstream issue with CFITSIO, we don't do anything special to open compressed files (differently from Astropy, see #135)
Thanks for the quick check!
For that one it works for me to. It also works if I create a gzipped FITS file with astropy.
Don't know whats wrong with that file.
For now I will just use GZip.jl to decompress the file it into a temporary file beforehand.
I will close this, since it seems to be some special problem with my file. And maybe it could be solved by FileIO
s handling of compressed files...
When I try to open a GZipped file (
.fits.gz
-extension) I get the following error messageOpening the file with astropy works fine.
If you want I can also upload the fits file where it does not work.
This is the state of my environment: