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.
PyRAF is a product of the Science Software Branch at the Space Telescope Science Institute.
Due to reduced budgets for HST, we can only provide minimal Pyraf support. If you have a problem that cannot be solved quickly by our first tier support, we may be unable to help. This is unfortunate, but it is the best we can do with the resources available.
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.