Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.stsci.edu/instruments/wfpc2/Wfpc2_dhb/appendixA2.html
Дата изменения: Wed Feb 20 18:27:15 2002 Дата индексирования: Sat Dec 22 17:03:34 2007 Кодировка: |
![]() | HST Data Handbook for WFPC2 | ||||
|
A.1 Initiating IRAF
- How to set up your IRAF working environment.
- How to start and logout of the IRAF program.
![]()
We assume that your site has IRAF and STSDAS installed. If not, you must obtain and install the software. See section A.3 for details.
A.1.1 Setting Up IRAF
Before running IRAF for the first time you need to follow these three steps:
- Create your IRAF root directory.
- Move to that directory and set the necessary environment variables or system logicals and symbols.
- Run mkiraf to create a
login.cl
file and a uparm subdirectory.Users generally name their IRAF home directory
iraf
(also referred to as your IRAF root directory) and set it up in their account's root directory (i.e., the default directory that you are in when you log in to the system). The IRAF home directory doesn't need to be in your account's root directory, nor does it need to be callediraf
, but you should not put it on a scratch disk that is periodically erased.If you call your root IRAF directory
"iraf"
, you can set up IRAF as follows:![]()
The mkiraf command initializes IRAF by creating a
login.cl
file and a subdirectory calleduparm
. After typing the mkiraf command, you will see the following:
% mkiraf
-- creating a new uparm directory
Terminal types: gterm=ttysw+graphics,vt640...
Enter terminal type:
Enter the type of terminal or workstation you will most often use with IRAF. 1 Generic terminal types that will work for most users are:
xgterm
for sites that have installed X11 IRAF and IRAF v2.10.3 BETA or later.
![]()
You can change your terminal type at any time by typing set term=new_type during an IRAF session. You can also change your default type by editing the appropriate line in your login.cl file.
After you enter your terminal type, you will see the following output before getting your regular prompt:
A new LOGIN.CL file has been created in the current ...
You may wish to review and edit this file to change ...
The
login.cl
file is the startup file used by the IRAF command language (CL). It is similar to theLOGIN.COM
file used by VMS or the.login
file used by Unix. Whenever IRAF starts, it looks at thelogin.cl
file. You can edit this file to customize your IRAF environment. In fact, you should look at it to make sure that everything in it is correct. In particular, there is a line starting withset home =
that tells IRAF where to find your IRAF home directory. You should verify that this statement does, in fact, point to your IRAF directory. If you will be working with standard IRAF format images you should also insert a line sayingset imdir = "HDR$"
. Theimdir
setting is ignored when working with GEIS format images.
The
uparm
directory will contain your own copies of IRAF task parameters. This directory allows you to customize your IRAF environment by setting certain parameter values as defaults. Once you set up IRAF, you should rarely need to do it again, expect when updated version of IRAF are installed.A.1.2 Starting and Stopping an IRAF Session
To start an IRAF session:
IRAF starts by displaying several lines of introductory text and then puts a prompt at the bottom of the screen. Figure A.1 is a sample IRAF startup screen.
Figure A.1: IRAF Startup Screen![]()
To quit an IRAF session:
1 Users at STScI should consult theSTScI Site Guide for IRAF and STSDAS
.
Space Telescope Science Institute http://www.stsci.edu Voice: (410) 338-1082 help@stsci.edu |
![]() |
![]() |
![]() |
![]() |
![]() |