Posted: Tue Jan 10, 2012 8:14 am Post subject: v2.15 would not display images
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?
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.
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.
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.
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?
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.
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.
Joined: 07 Jul 2006 Posts: 6 Location: University Of Hertfordshire
Posted: Mon Mar 05, 2012 9:29 am Post subject:
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?
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'?
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
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