v2.15 would not display images
Vallery Stanishev wrote on Jan 10, 2012
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:
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:
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?
jcadien1 wrote on Jan 10, 2012
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
Vallery Stanishev wrote on Jan 10, 2012
Mike Fitzpatrick wrote on Jan 10, 2012
If you're interested let me know and I'll post instructions.
Vallery Stanishev wrote on Jan 10, 2012
fitz
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.
Mike Fitzpatrick wrote on Jan 10, 2012
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.
Vallery Stanishev wrote on Jan 10, 2012
Mike Fitzpatrick wrote on Jan 10, 2012
James Clarke wrote on Jan 10, 2012
I should be running the linux64 architecture now. The only problem I encountered along the way was that when I originally typed:
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:
#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?
Mike Fitzpatrick wrote on Jan 10, 2012
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.
James Clarke wrote on Jan 10, 2012
Mike Fitzpatrick wrote on Jan 10, 2012
James Clarke wrote on Jan 10, 2012
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.
James Clarke wrote on Jan 10, 2012
Mike Fitzpatrick wrote on Jan 10, 2012
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.
James Clarke wrote on Jan 10, 2012
Mike Fitzpatrick wrote on Jan 10, 2012
Since the bug affects all tasks you'll need a new set of binaries relinked against the patched libs, but in case it helps I've put the DISPLAY binary with the fix at
ftp://iraf.noao.edu/ftp/v215/support/linux64/x_tv.e
Install this in $iraf/bin.linux64 and let me know if you still have problems.
James Clarke wrote on Jan 10, 2012
Thanks for your help1
Last post on Jan 10, 2012