View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Problems with plotting using Iraf

H.J. van Heerden wrote on Jun 07, 2006

Hi all

This is my third Q. The reason for so many Q in one day is because I have finaly reached a point where spending all day searching for answers does not get me anywhere.

I want to develope a photometry package for my telescope, using Iraf scripts inside a FC4 environment. I started using Linux for the first time at the beginning of the year. I started using the Scisoft distributed package of iraf, but had some problems. I thus downloaded and installed my own Iraf system. I am currently running Iraf V2.12.2a and X11iraf V1.3.1, and is using DS9 as a display application. I am teaching myself Iraf using the tutorials and manuals available online.

It would go much faster if I didn't hit a snag every week. At this stage I am trying to set up my Iraf system so that I can use it without errors.

The current error that is holding me back for the past month or so is that I can't seem to be able to plot fits from inside Iraf. I can display from inside Iraf using DS9 as a tool, no problem. But when I want to plot a contour for example it gives me the following

cl> contour im010
Image will be block averaged by 7 in x and 7 in y
server # XGTERM.GUI -- Default GUI for Xgterm, providing a standard graphics terminal
# emulation.

reset-server
appInitialize irafterm IRAFterm {
IRAFterm.objects: toplevel Gterm gterm
*allowShellResize: true
*gterm.warpCursor: true
*gterm.raiseWindow: true
*gterm.deiconifyWindow: true
}
createObjects
send gterm setGterm
activate
sre[]ssz[R]

rir/0d`/nw[2]/nc[1]"q0["v1@"q1D#c+R#h+V#j+^#f,E#a,E"}+_"~+W#c+R%t1A%z1D%}1I%y1O%r1P%m1K%n1E%t1A's3A'w2\'}2\(a3A'}3F'w3F's3A

With the rest of the screen filled witd the above line.

If someone can please help me, for I am behind scedule as is.

Thank U
Regards
FSBoyden

Mike Fitzpatrick wrote on Jun 07, 2006

Since you're seeing the GUI code and graphics metacode it means your IRAF stdgraph is set to 'xgterm', but you are using some other kind of window. If you're using an Xterm window you'll need to reset the iraf device appropriately, e.g.


cl> stty xtermjh


or do a new MKIRAF and answer 'xtermjh' when asked for the terminal type. (The 'xtermjh' is just an xterm setting that puts the status line text on the text window instead of scrolling over the graphics as the plain 'xterm' does).

Note that terminals on the typical linux desktop such as rxvt, gnome-terminal, kterm, etc do not support graphics and cannot be used. Since you say you're using X11IRAF then simply starting an XGterm and logging into iraf from there is sufficient.

-Mike

H.J. van Heerden wrote on Jun 07, 2006

Thanx. U Helped me a lot. :)

Last post on Jun 07, 2006