IRAF - UMKCgeg/Wiki GitHub Wiki

IRAF is a suite of tools to do many things with images.

IRAF Scripts

IRAF scripts are a way to run multiple commands at once. This is an extremely limited introduction, and those with more knowledge should feel free to contribute more to this page.

In a file, just put all the commands you want to run inside braces, like so.

{
    command1
    command2
    # this is a comment
    etc...
}

There are many things you can do within an IRAF script. If you need something complicated, though, you may want to consider using PyRAF, which will let you code in Python.

After you're done editing it, save the file, normally with a .cl extension.

To run your script, just run cl < yourscript.cl from within IRAF.

Related

  • PyRAF: A Python wrapper for IRAF that allows you to call IRAF tasks from within Python.