PyRAF is a command language for running IRAF tasks that is based on the Python scripting language. It gives users the ability to run IRAF tasks in an environment that has all the power and flexibility of Python. PyRAF can be installed along with an existing IRAF installation; users can then choose to run either PyRAF or the IRAF CL.
To download and install the current release version of PyRAF please see instructions on the Astroconda page: http://astroconda.readthedocs.io/en/latest/.
To download and install the latest development version of PyRAF follow these steps. Please only use this version if you have been directed by an STScI representative to do so:
- Install Anaconda if you do not already have it, or setup a virtual environment on your machine.
- Change to a new "Conda environment”(link for text: https://conda.io/docs/user-guide/tasks/manage-environments.html). This is very important. Do not pip install PyRAF into your root environment. See instructions for changing to a new environment in the provided link.
- If using Conda, once in the new environment make sure it does not have a version of PyRAF installed already by running “conda uninstall pyraf” in the terminal.
- You can now do a pip install from the master branch of the PyRAF repo by running “pip install git+https://github.com/spacetelescope/pyraf.git@master” in the terminal.