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 

v2.15 would not display images
Goto page 1, 2  Next
 
Post new topic   Reply to topic    iraf.net Forum Index -> General IRAF
View previous topic :: View next topic  
Author Message
vall
Active IRAF User


Joined: 28 Sep 2006
Posts: 49
Location: Stockholm

PostPosted: Tue Jan 10, 2012 8:14 am    Post subject: v2.15 would not display images Reply with quote

Hello,

I have a set of fits images that v2.15 (64bit version on 64bit F16) wouldn't display. It just returns SEG. FAULT. This is the header of the images:

Quote:

SIMPLE = T / file does conform to FITS standard
BITPIX = 32 / number of bits per data pixel
NAXIS = 0 / number of data axes
EXTEND = T / FITS dataset may contain extensions
COMMENT = ' '
COMMENT and Astrophysics', volume 376, page 359; bibcode: 2001A&A...376..359H
BZERO = 2147483648 / offset data range to that of unsigned long
BSCALE = 1 / default scaling factor


I can 'ccdlist' but not display, imexax, etc. The same images are perfectly well display with v2.14 which I run on another machine. These are raw unprocessed image. Another set of raw images:

Quote:

SIMPLE = T / A valid FITS file
BITPIX = 16 / [bits] Bits per pixel
NAXIS = 2 / Number of axes
NAXIS1 = 1080 / [pixels]
NAXIS2 = 1024 / [pixels]
BZERO = 32768.0000000 / Number to offset data values by
BSCALE = 1.0000000 / Number to multiply data values by


are however perfectly well displayed with v2.15. Talking to colleagues, I had the impression that many have encountered problems with certain images and the 64bit version of v2.15, but I could not find a related post in the forum. Anyone has have similar issues?
Back to top
View user's profile Send private message Visit poster's website
jcadien1



Joined: 28 Nov 2006
Posts: 12

PostPosted: Tue Jan 10, 2012 3:41 pm    Post subject: Reply with quote

Vall,
It looks to me as if the header has missing data. The naxis values is zero, and naxis1 and naxis2 do not exist. Without this information the display software has no way to break up the stream of values into x,y positions.

Jim
Back to top
View user's profile Send private message
vall
Active IRAF User


Joined: 28 Sep 2006
Posts: 49
Location: Stockholm

PostPosted: Tue Jan 10, 2012 5:02 pm    Post subject: Reply with quote

No, it is multi-extension FITS file. I can process it and do whatever with IRAF v2.14, but not with v2.15 64bit.
Back to top
View user's profile Send private message Visit poster's website
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Wed Jan 11, 2012 4:28 pm    Post subject: Reply with quote

This problem was recently fixed in the development system, the 4-byte integers weren't being properly unpacked to native ints when scaling is used in the FITS kernel. You didn't say whether this was a Linux or OSX system and I'm travelling at the moment but unless you want to patch and update the source locally a full set of binaries is required to properly fix this.

If you're interested let me know and I'll post instructions.
Back to top
View user's profile Send private message
vall
Active IRAF User


Joined: 28 Sep 2006
Posts: 49
Location: Stockholm

PostPosted: Wed Jan 11, 2012 6:37 pm    Post subject: Reply with quote

fitz wrote:
This problem was recently fixed in the development system, the 4-byte integers weren't being properly unpacked to native ints when scaling is used in the FITS kernel. You didn't say whether this was a Linux or OSX system and I'm travelling at the moment but unless you want to patch and update the source locally a full set of binaries is required to properly fix this.

If you're interested let me know and I'll post instructions.


Yes, I am interested. I use Fedora 16 64bit Linux. Thanks.
Back to top
View user's profile Send private message Visit poster's website
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Fri Jan 13, 2012 6:34 pm    Post subject: Reply with quote

The file to get (depending on the platform) is

ftp://iraf.noao.edu/iraf/v215/support/linux64/libex.a
or
ftp://iraf.noao.edu/iraf/v215/support/macintel/libex.a

Install this file in your $iraf/bin.linux64 (or $iraf/bin.macintel) directory.

To relink your system with the new library:

1) Edit your .cshrc file to define the needed environment:

setenv iraf /iraf/iraf/
setenv IRAFARCH linux64
source $iraf/unix/hlib/irafuser.csh

Be sure the trailing '/' is on the iraf pathname, and that the
path is appropriate for your system

2) Go to your iraf root directory and change the system arch:

% make linux64

3) Relink the system

% make update

You'll need to similarly relink external packages to also pick up the change, e.g.

% cd $iraf/extern/fitsutil
% mkpkg -p fitsutil linux64
% mkpkg -p fitsutil update

Details may vary depending on the package, if you have problems post 'em here.
Back to top
View user's profile Send private message
vall
Active IRAF User


Joined: 28 Sep 2006
Posts: 49
Location: Stockholm

PostPosted: Sun Jan 15, 2012 10:28 am    Post subject: Reply with quote

thinks. It works now. The updates also worked for all the external packages but TABLES and STSDAS. These two have no .bin.linux64' directories. Should I updates them with 'mkpkg -p tables linux' or there is no need for that?
Back to top
View user's profile Send private message Visit poster's website
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Sun Jan 15, 2012 12:46 pm    Post subject: Reply with quote

Only 64-bit architectures need to be updated, STSDAS/TABLES will remain 32-bit according to STScI and the system will simply use those binaries as needed.
Back to top
View user's profile Send private message
jraclarke



Joined: 07 Jul 2006
Posts: 6
Location: University Of Hertfordshire

PostPosted: Thu Mar 01, 2012 5:13 pm    Post subject: Reply with quote

I have also done what has been suggested, but I am still finding problems with displaying an image with ds9 and still get a segmentation violation.

I should be running the linux64 architecture now. The only problem I encountered along the way was that when I originally typed:

Quote:
make linux64


Then it could not find the file "$iraf/extern/.zzsetenv.def"

To get round this I copied it from /iraf/iraf/local/lib/zzsetenv.def (note the is no preceding dot) to the extern dir.

This file contains:

Quote:

#Global environment definitions for the LOCAL packages.

#set localbin = "local$bin(arch)/"
set localbin = "local$bin/"
set pkgbin = localbin$
set pkglibs = local$lib/

keep


Could this have anything to do with it not working?
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Sat Mar 03, 2012 2:25 am    Post subject: Reply with quote

The error is that the $iraf/extern/.zzsetenv.def file was removed for some reason. You can reset the entire extern directory with a "make init" command in $iraf/extern, this assumes you've already run the configure script to create the Makefile (if not, then "./configure" will create one and init the .zzsetenv.def file as well).

If the .zzsetenv.def was deleted then there may be other problem with the extern directory as well so a 'make init' might be needed anyway. Your workaround fixed the problem because then at least *something* was in that file, even though it had no real effect.
Back to top
View user's profile Send private message
jraclarke



Joined: 07 Jul 2006
Posts: 6
Location: University Of Hertfordshire

PostPosted: Mon Mar 05, 2012 9:29 am    Post subject: Reply with quote

Thanks for that. I ran ./configure and make init with no problem. But I still seem to be experiencing a segmentation violation when trying to display this image. Is there some sort of logfile I can check to see what is happening?
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Mon Mar 05, 2012 4:27 pm    Post subject: Reply with quote

Could you upload the image to the anonftp at ftp://iraf.noao.edu/pub so I can try to reproduce it here? Are you using MSCDISPLAY on the whole MEF or DISPLAY on individual extensions? Any parameters set like 'fill'?
Back to top
View user's profile Send private message
jraclarke



Joined: 07 Jul 2006
Posts: 6
Location: University Of Hertfordshire

PostPosted: Tue Mar 06, 2012 8:16 am    Post subject: Reply with quote

Sure, it is uploaded and called ukidss_iraf2.fits. I am just using display (into ds9),
Quote:
display ukidss_iraf2[1] 1

but I have also tried it on a single extension version of the same file and no luck with that either. There are no extra parameters.
Back to top
View user's profile Send private message
jraclarke



Joined: 07 Jul 2006
Posts: 6
Location: University Of Hertfordshire

PostPosted: Tue Mar 06, 2012 9:21 am    Post subject: Reply with quote

Also, I've just noticed that the same is happening when I run it for ximtool! - I have the 24-bit display version installed. :-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 08, 2012 5:02 am    Post subject: Reply with quote

The problem was with the use of BITPIX=32 data having bscale/bzero values in the header. The earlier fix worked correctly on macintel systems, but for reasons I don't fully understand, was having alignment issues under linux leading to the segfault seen.

I can give you individual patched binaries but the bug affects all tasks and so the system should be relinked with the patch. The files you'll need to get are

ftp://iraf.noao.edu/iraf/v215/support/linux64/libex.a
ftp://iraf.noao.edu/iraf/v215/support/linux64/libvops.a

Install these in your $iraf/bin.linux64 directory and relink as described above. Let us know if you still have problems.
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
Goto page 1, 2  Next
Page 1 of 2

 
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.15 seconds