View Single Post
  #2  
Old April 23rd 11, 12:59 PM
David McGinnis David McGinnis is offline
Junior Member
 
First recorded activity by SpaceBanter: Apr 2011
Posts: 1
Default

Quote:
Originally Posted by Tom McGlynn View Post
I have just released a new version of the nom.tam FITS library at
http://heasarc.gsfc.nasa.gov/docs/he...its/java/v1.0/
This version has one significant change: support for .Z compressed
images. I've decided that supporting this commonly used format
was a big enough change to push the library to V1.0!

Note the slight change in the location (v1.0 versus v0.9) from earlier
releases. Please let me know if you have any issues or problems.

Regards,
Tom McGlynn
I've been using nom.tam.fits package for quite awhile with great results. However for a recent application am I am trying to open fits image files that , were created by the CCDOPS software from SBIG.

When I open the fits file with the following call:

Fits fits = new Fits(fitsFileName);
ImageHDU hdu = (ImageHDU) fits.readHDU();

I am getting the exception

nom.tam.fits.PaddingException: Error skipping padding after image
at nom.tam.fits.ImageData.read(ImageData.java:273)
at nom.tam.fits.Fits.readHDU(Fits.java:602)

This call has worked in the past for me on every image file I have come across except for the files from SBIG.

I can open the file in other fits image viewers such as DS9 but the nom.tam.fits package throws the padding exception.

Any thoughts?