XIRAF - The new way to start your IRAF session...

by

Vassilis Charmandaris, (Department of Physics, University of Crete)


In this web page I provide a script I started developing back in 1992 which starts an IRAF session in a way a bit more user friendly than the usual cl command. Using this script to start IRAF will make the life of any IRAF user as well as the local system manager much simpler.

I hope that once you've read this page you'll be convinced that it is indeed a good idea to use xiraf and that my efforts to create the script and this web page did not go in vain. If you still have any doubts or questions feel free to contact me.

I would not have been able to do this without the guidance and support over all these years of Mike Fitzpatrick (NOAO), my IRAF mentor...

Dr. Charm


Current Version:

Problems with the default IRAF start-up

First the good news: IRAF is a great package, probably the best in the market, and above all one can get it for free in nice pre-compiled binaries with easy to follow installation instructions.

Then the bad news: Once you have it in your system and if you want to serve many users problems arise.

More specifically:

For the System Manager

For the Novice User

To use IRAF (version 2.10 or later) to its full potential (nice graphics, colors etc) the user has to do the following: This procedure is time consuming and not very obvious to someone who starts learning Unix, astronomy and IRAF at the same time. Frustration may also appear when:

So why should one use the script xiraf ?!

Well, all of the problems presented above can be solved if the script xiraf is installed together with the IRAF distribution.

When a user executes the script xiraf for the first time, xiraf checks whether the user has already been using IRAF by looking for a login.cl file. Then it creates a set of personal fifo files, and if the user does not have a login.cl file it runs mkiraf, to create it. Subsequently, the script opens an XGterm with the selected image display client and starts IRAF inside this new XGterm. When a user wishes to finish his/her IRAF session and issues the command cl>logout, the image display client, the IRAF session, and the XGterm close keeping everything nice and tidy...

The major advantage of the script is that it also allows the user to select in a transparent way the program he/she wants to use to display his/her IRAF images. As far as I know there are four in the market. First it's the old but reliable SAOimage. We also have XImtool the X-window resurrection of the old Sun Imtool which comes as part of the X11IRAF package. Finally we have DS9 ( SAOimage Deep Space 9) which is the next version of SAOtng and in a manner analogous to the popular TV series it's an even more powerful program. The web sites from where one can download the latest versions of all four programs are listed at the end of this page.

The syntax of the script is :

xiraf -h :Show command options
xiraf -help :Show command options
xiraf :Start IRAF in an XGterm using the default image display
xiraf -ximtool :Start IRAF in an XGterm using XImtool for display
xiraf -saoimage :Start IRAF in an XGterm using SAOimage for display
xiraf -ds9 :Start IRAF in an XGterm using DS9 for display
xiraf -rebuild :Rerun mkiraf rebuilding the login.cl file of the user. This should be used ONLY in the case of major IRAF version upgrades.

It's worth stressing that xiraf does not interfere with the existing IRAF distribution. It is just simplifying the intermediate steps. Users who don't like it do not have to use it even if it has been placed into the system. They can run IRAF in the usual old fashioned way.

Technical Note: Apart from setting some options to automate things the xiraf script forces the user to start his/her IRAF session with private fifo files. This is done internally in the xgterm sheel using the environment variable IMTDEV. In principle private fifos are only necessary if one has multiple users running SAOimage on the same workstation. XImtool and DS9 do not have this problem. However, my experience has shown that the public fifos (/dev/imt1o and /dev/imt1i) are not by default present in all systems. So using personal fifo files is a more robust approach.


Set-up Requirements

The script can be used either by a single user who just wishes to simplify his/her IRAF start-up process (by placing it somewhere in his/her directory) or it can be installed in a global way for all IRAF users.

In the second case the System manager has to get the script xiraf provided at the end of this page and place it in the standard executable Unix PATH of the users. A series of site-dependent environment variables must be defined in the xiraf script.

Minimum system requirements are: IRAF version 2.10 or later, as well as the X11IRAF software package which includes the xgterm and ximtool executables. The IRAF commands cl and mkiraf should be in the PATH of each potential IRAF user. The location of all the other executables and programs needed is defined within the script.

Any potential IRAF user will simply have to type xiraf to start IRAF for the first time. The script will prompt the user to define his/her personal IRAF directory via an environment variable called USERIRAF and it will take care of all the rest...

The script has been tested under all IRAF versions later than 2.10.4, running in clusters of DEC-Alphas (OSF/1 vers. 3.2, and Digital Unix ver. 4.0), DEC-Ultrix, Suns (Solaris versions 2.5, 2.6, and 2.7) as well as on Red Hat Linux. It has been used in sites which use either NFS (=Network File System) or AFS(=Andrew File System) or mixed filesystems. The image display packages currently supported are:

XImtool ver. 1.3.1, SAOimage ver. 1.35.1, and DS9 ver. 6.2

The script follows:

The script has plenty of comments so it's rather trivial to understand its function. If you've managed to get IRAF running and you already have X11IRAF you'll be able to customize the script in your system in 10min, or your money back ....

If you find this script useful please send an e-mail and let me know about it. This way your institution will be proudly displayed in the list found at the end of this web page. I would appreciate even more if you could send me an e-mail with comments or bugs you've noticed.

I would like to acknowledge once more the help of Mike who checked the script in its early form.

Vassilis Charmandaris
April 15th 2000
Ithaca, NY, USA

Sites using xiraf include:


[calvin] Contact V.Charmandaris | University of Crete | Department of Physics |
Copyright © Mar. 15, 2005 Vassilis Charmandaris. All rights released. Duplicate and redistribute in any form.