View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Custom STDIMAGE Problem

desjardins wrote on Aug 10, 2010

Hi all,

I've copied over the graphcap and imtoolrc files and made the necessary modifications to create a custom image buffer for my 8600x12200 image, but it won't seem to work.

At the bottom of imtoolrc I added:

64   1   8600    12200    #  imt64|imt122k


And in graphcap I added:

imt64|imt13k|BIG Frame Size:cn#64:xr#8600:yr#12200:\
	:LC:BS@:z0#1:zr#200:DD=node!imtool,,8600,12200:tc=iism70:


When I open IRAF, I type:

ecl> reset graphcap = ./graphcap
ecl> gflush
ecl> reset stdimage = imt64
ecl> !ds9 &
ecl> displ f606w_hires.fits 1


And I get back:

ximtool: attempted write out of bounds on framebuf
write 8600 bytes at [0,12199]
ximtool: attempted write out of bounds on framebuf
write 8600 bytes at [0,12198]
ximtool: attempted write out of bounds on framebuf
write 8600 bytes at [0,12197]
ximtool: attempted write out of bounds on framebuf
write 8600 bytes at [0,12196]
ximtool: attempted write out of bounds on framebuf
write 8600 bytes at [0,12195]
ximtool: attempted write out of bounds on framebuf
write 8600 bytes at [0,12194]
ximtool: attempted write out of bounds on framebuf
write 8600 bytes at [0,12193]


and it just keeps going. If I switch the both of the imtoolrc and graphcap dimensions from 8600 and 12200 to 512 each, it works, but it only displays a 512x512 section of my image as expected. So I think the changes I made must be correct. Is it possible IRAF just can't handle buffers of this size?

Thanks for any help!

Tyler Desjardins
Wesleyan University
tdesjardins@wesleyan.edu

Mike Fitzpatrick wrote on Aug 10, 2010

The buffer size should work and you appear to have made the correct changes.

Which 'imtoolrc' file did you edit? DS9 will use the one in /usr/local/lib/imtoolrc or the $HOME/.imtoolrc file but won't read the iraf$dev/imtoolrc file at all and so won't recognize the imt64 entry.

desjardins wrote on Aug 10, 2010

Thanks for the fast response! Okay, I didn't know that I had to put the imtoolrc file in the $HOME directory. It was sitting in the working directory. Crisis averted. Thanks again!

-Tyler

Last post on Aug 10, 2010