Starting IRAF in the Anaconda environment


Start up IRAF in the Anaconda Astroconda iraf27 environment. These directions apply to starting IRAF in the iraf27 environment installed under anaconda on a typical LSA TS - Randall build for Astronomy.


  • Mac
  • Linux
  • Terminal either GUI or ssh -X


  1. If your shell is set to tcsh when you login, you will need to use the sh command in order to use the source command to activate the IRAF environment in anaconda: computername{uniqname}21: sh
  2. Next, activate the iraf27 environment: sh-4.2$ conda activate iraf27

    Once the environment is active, your prompt with change to show a (iraf27) at the beginning of it.
  3. Now you will run the mkiraf command, which will create your file, your uparm directory, and will define system logicals and symbols: (iraf27) sh-4.2$ mkiraf

    (If you haven’t already set up your file, make sure you set the terminal type to xgterm when prompted, though you can always edit the file later and change it.)
  4. Start xgterm and put it in the background. This will spawn an xgterm window, and you’ll end up at the tcsh prompt in your home directory — /u/home/uniqname in Linux and /Users/uniqname in Mac OSX — in that window: (iraf27) sh-4.2$ xgterm &
  5. Now in the xgterm window, you will need to start ds9 and put it in the background: computername{uniqname}21: ds9 &
  6. Start up IRAF with the cl command: computername{uniqname}21: cl
  7. This will put you at the IRAF prompt: ecl>

Additional notes

Anaconda Python in LSA TS - Randall supported departments


Article ID: 1726
Wed 5/27/20 10:36 AM
Fri 1/8/21 9:41 AM