Posted: Wed Mar 28, 2012 4:50 pm Post subject: fits error
I have a fits file that I think should be fine. It is available at http://soi.stanford.edu/~duvall/Iraf/img0.fits. ds9 reads it fine and imheader l+ gives a nice header. But imcopy and imstatistics both give segmentation violation. The beginning of the header is below. Any idea what is going on?
imhe img0.fits l+ | head
No bad pixels, min=271., max=3528.
Line storage mode, physdim [500,500], length of user area 2633 s.u.
Created Wed 09:27:45 28-Mar-2012, Last modified Wed 09:27:45 28-Mar-2012
Pixel file "img0.fits" [ok]
EXTEND = T / FITS dataset may contain extensions
COMMENT FITS (Flexible Image Transport System) format is defined in 'Astronomy
COMMENT and Astrophysics', volume 376, page 359; bibcode: 2001A&A...376..359H
BUNIT = 'm/s'
CONTENT = 'Tracked Extracted Patches, made by hg_patch'
Your file does not cause a segmentation error under 2.16 for linux. You'll want to post the version of IRAF and architecture you are using. The most likely scenario is you are using an old version of IRAF on a 64 bit machine.
Assuming you're on a v2.15 64-bit system, this is a known issue in the FITS kernel caused by the use of BSCALE/BZERO values in the header. This has been fixed in the recent v2.16 release, but unfortunately if you want to patch a v2.15 system you'll need to relink your system with patched 'libex.a' and 'libvops.a' libraries available from
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum