IRAF Scripts
|CTIO Home| |CTIO
IR| |IR
Observing|
This is not a data reduction page. Below, we describe IRAF scripts/commands
which may be useful while observing at the telescope. These scripts are
sourced when the iraf session begins. They must be executed from the "cl>"
prompt in the iraf window.
Trouble with IRAF?
If IRAF is not behaving, try the universal cure-all command flpr.
If that doesn't help, try logging out (logout) and restarting. You can
restart by choosing iraf xGterm from the OpenWindows "Programs" menu
(right mouse button).
focus
focus allows for the interactive analysis of a set of focus frames
(for example as obtained with focus.pro or focus.tcl).
where n1 and n2 are two integers which identify images
of the form pre***suf.imh, or pre***suf.fits. For example, if the focus frames
were of the form focus.001.fits, then "focus 1 6" would analize frames focus.001
through focus.006, inclusively. This task calls the IRAF task "starfocus." See
the IRAF help for more information on starfocus and its parameter file.
diff
diff is a simple iraf (cl) script which will subtract two
images and display the result. This can be very useful when observing faint
objects on top of a large background.
where n1 and n2 are two integers which identify images
of the form pre***suf.imh. Suppose the wfire "filename " is test (in this
case, pre=test). Then, wfire will write iraf images of the form test001.imh,
test002.imh, etc (suf=" " in this case). diff 1 2 would subtract
test002 from test001 and display the result automatically in the image
display window (ximtool, frame 2). The prefix (in the example, pre=test)
must be entered into the diff parameter set in the iraf window. The
image maximum and minimum intensities to display can also be modified in
the diff parameter set. To avoid collisions with wfire, diff
should not be executed when wfire is writing
an image to the display.
imexam
imexam is a built-in iraf command. It
is fully described in the iraf help pages (help imexam at the "cl>" prompt).
imexam is useful in querying images taken by wfire. For example, the
"r" keystroke
will make a radial plot of the stellar image which is at the current image
cursor position. The "a"
keystroke prints useful data about a star on the image display, into the
iraf window (e.g. FWHM, pixel coordinates, etc). The "e"
keystroke draws a contour plot of the region around the current image cursor
position.The "r"
and "e"
keystrokes are particularly useful when focusing the telescope.
please mail questions or comments to: Bob
Blum (rblum@noao.edu). rev
08 Nov 1998.