ESO Reflex - PyRAF examples

The ESO Recipe Flexible Execution Workbench

Instructions for PyRAF usage in ESO Reflex

IRAF remains widely used in the community. Therefore it is essential to integrate PyRAF smoothly into Reflex. For this Reflex provides a PyRAF Processor very similar to the Python Processor. The PyRAF processor handles the query of IRAF task parameters from the user when the script starts up. The Python interface and Python script editing window work similarly for all Python scripts.

Create the login.cl for IRAF

As when using IRAF the user must create the login.cl. In the directory reflex/reflex-current type mkiraf.

Patch for PyRAF

If a PyRAF script is run from a terminal, there are two places for text streams to appear e.g. in the case of the splot command: 1) The bar in the bottom left corner of the irafterm, or 2) the terminal.

When a PyRAF script is run within Reflex, the "terminal" is the Reflex Output Viewer (see image below). In order to make the current irafterm work properly within Reflex, PyRAF needs a patch version of the gki.py module (download here). Its location in your installation should be /xxx/pythonx.x/site-packages/pyraf/gki.py. This patch is for PyRAF 1.4. If you are using PyRAF 1.2.1, download here a patch with the name gki_121.py.