Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

fits error

 
Post new topic   Reply to topic    iraf.net Forum Index -> General IRAF
View previous topic :: View next topic  
Author Message
duvall
Active IRAF User


Joined: 08 Mar 2006
Posts: 43

PostPosted: Wed Mar 28, 2012 4:50 pm    Post subject: fits error Reply with quote

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?
Thanks.
Tom

imhe img0.fits l+ | head
img0.fits[500,500][real]:
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'
INSTRUME= 'HMI'
CONTENT = 'Tracked Extracted Patches, made by hg_patch'
TELESCOP= 'SDO'
Back to top
View user's profile Send private message
Jason Quinn
IRAF Guru


Joined: 07 Apr 2006
Posts: 151

PostPosted: Wed Mar 28, 2012 9:48 pm    Post subject: Reply with quote

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.


Cheers,
Jason

PS The file does however have a fits error:

Code:
              fitsverify 4.16 (CFITSIO V3.250)             
              --------------------------------             
 
 
File: img0.fits

1 Header-Data Units in this file.
 
=================== HDU 1: Primary Array ===================
 
*** Error:   Keyword #47, EXPTIME: Type of value "nan" is unknown.
*** Warning: Data checksum is not consistent with  the DATASUM keyword
*** Warning: HDU checksum is not in agreement with CHECKSUM.
 
 71 header keywords
 
 32-bit integer pixels,  2 axes (500 x 500),
 
++++++++++++++++++++++ Error Summary  ++++++++++++++++++++++
 
 HDU#  Name (version)       Type             Warnings  Errors
 1                          Primary Array    2         1     
 
**** Verification found 2 warning(s) and 1 error(s). ****
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Thu Mar 29, 2012 4:15 am    Post subject: Reply with quote

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

ftp://iraf.noao.edu/iraf/v215/support/<arch>

Relinking should then just be a matter of

Code:
% cd $iraf
% make linux64
% make update


If you still have problems let me know, your image worked fine for me under v2.16.
Back to top
View user's profile Send private message
duvall
Active IRAF User


Joined: 08 Mar 2006
Posts: 43

PostPosted: Mon Apr 02, 2012 6:33 pm    Post subject: Reply with quote

I downloaded the two libraries libex.a and libvops.a, relinked the system.
This fixed my problem.
Thanks very much!
Tom
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> General IRAF All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.09 seconds