IRAF paso a paso: 3 - The CL command language


File and image templates


IRAF usually stores commands you typed in a memory stack, and allow to go back through it and use/edit previous command. Also, a permanent record of commands can be kept.

Command Description
history 40 Displays the last 40 commands
e Go back to previous command
^ Go back and execute previous command
e imst Go back to previous command starting with "imst"
keeplog = yes All commands are stored in a file
logfile = "home$cllogfile.cl" Name of file where to keep cl commands

Keeplog and logfile are cl parameters (do: cl> lparam cl).

I never use this capability, as I prefer to write all commands I use (together with relevant output and comments) in my own logfiles. Also, ecl now allows to go through the history just using the up and down arrows.


Unix-like commands


CL as a pocket calculator

Not all people know that IRAF provides a simple yes powerful calculator. It may compute simple expressions, or use predefined variables and built-in functions to do more complex operations.

Do cl> lpar cl to see CL's own parameters and variables


Some useful tricks