Tuesday, April 28, 2015

Installing Sherpa

My new iMac with Yosemite arrived this week and I have to install all the software packages I  use including Sherpa.  I had to install Python Anaconda then setup my local git directory
and clone sherpa:

$ git clone https://github.com/sherpa/sherpa.git

Next go and install sherpa:

$ cd sherpa
$ sherpa setup.py install

The build failed as I did not have gfortran. 
Installing gfortran was easy - just got the package from https://gcc.gnu.org/wiki/GFortranBinaries
and follow the instructions.

With this update the basic Sherpa installation completed. I run the sherpa_test which failed as I did not have pyfits.


$ pip install pyfits

Then I run sherpa_test  and this time the tests passed. I still need to install ds9, but now I have Sherpa and can run some of the analysis that I have to do today.


  1. Awesome! Hope to see pip install sherpa soon.

  2. Did you run into a problem when using ui.plot_fit or ui.plot_data? It compiles for me, but the plot doesn't actually pop up

  3. Did you do %matplotlib or start ipython session with
    'ipython --pylab'?