<html>
<body>
I've been trying to use the gdalinfo application to examine a number of
FITS files that I've grabbed off the net. I've run into problems with
both the precompiled/linked version of gdalinfo that comes with
FWTOOLS.2.0.6, and with a copy I built myself from GDAL 1.7.2 source code
and the cfitsio library. I'm running Linux (Fedora Core 13, Kernal 2.6)
on a 32 bit Intel platform. It's not that I'm interested so much in the
output of gdalinfo, but I wanted to verify that the underlying GDAL
library could handle FITS before using it in my own application.&nbsp;
<br><br>
Most FITS files I tried caused gdalinfo to die with a segmentation fault.
For example, the following files caused segmentation faults:<br>
<a href="http://fits.gsfc.nasa.gov/nrao_data/tests/ftt4b/file013.fits" eudora="autourl">
http://fits.gsfc.nasa.gov/nrao_data/tests/ftt4b/file013.fits</a><br>
<a href="http://fits.gsfc.nasa.gov/nrao_data/samples/wcs/m82opt.fits" eudora="autourl">
http://fits.gsfc.nasa.gov/nrao_data/samples/wcs/m82opt.fits<br><br>
</a>The remaining files I tried caused more graceful failures,
represented by the message below.
<dl>
<dd>ERROR 1: FITS file /opt/data/fits/ngc6503.fits does not have 2 or 3
dimensions.
<dd>gdalinfo failed - unable to open '/opt/data/fits/ngc6503.fits'.
</dl>File from
<a href="http://fits.gsfc.nasa.gov/nrao_data/samples/cubes/ngc6503.fits" eudora="autourl">
http://fits.gsfc.nasa.gov/nrao_data/samples/cubes/ngc6503.fits</a><br><br>
I was able to view these FITS file using SAOImage DS9. indicating that
the files were not corrupt.<br><br>
Has anybody tested GDAL against FITS files recently?<br><br>
Thank you,<br>
Eric.<br>
<x-sigsep><p></x-sigsep>
********************************************** <br>
Eric Davies, M.Sc. <br>
Senior Programmer Analyst<br>
Barrodale Computing Services Ltd. <br>
1095 McKenzie Ave., Suite 418<br>
Victoria BC V8P 2L5<br>
Canada<br><br>
Tel: (250) 704-4428<br>
Web:
<a href="http://www.barrodale.com/" eudora="autourl">
<font color="#0000FF"><u>http://www.barrodale.com</a></u></font> <br>
Email: eric@barrodale.com <br>
**********************************************<br><br>
<br>
</body>
</html>