Using PyRAF in a workflow
- To integrate PyRAF into Reflex, two steps are required. First create the login.cl as you would when using IRAF. Secondly, to communicate with the irafterm, Reflex needs currently a patch for PyRAF.
- The
reflex.py
module is needed for running Python scripts in Reflex. This module is located under reflex/reflex-current/scripts/python
. For further explanation see Python examples.
- To run PyRAF scripts in a workflow, first open Available Services in Tools and Workflow Launcher -menu. From Local Services/PyRAF Processors/, select PyRAF Processor and add it to the workflow model by right-clicking it and selecting Add to model. This opens a window to select the Python script that the user wants to use in the workflow. The Reflex kit contains one example:
reflex/reflex-current/scripts/python/splot.py
. For further explanations (e.g. the Python script editing window) see Python examples.
- To edit the workflow with the Advanced model explorer follow steps 3-5 under Using Python in a workflow.