I have been wanting to use OBSPY for a while now to process passive seismic data. This post details how to get obspy up and running with the ECLIPSE IDE on a mac. Eclipse is a nice IDE, but it does not have Ipython capabilities like Enthought’s Canopy. See this post for more on using obspy with canopy.
2) Get the obspy package using GIT. You may need to install GIT on your mac first. It’s version control system like SVN. In the command line type:
3)In the command line type:
3a) (you can also make setup.py executable and run: sudo ./setup.py develop -N -U –verbose)
4) Install eclipse from the download page.
5) Once eclipse is installed you need to add the python development environment PyDev. The easiest way is to use the tab: Help –> Install New Sotfware.
Click ‘Add’ on the right side of the ‘Work with:’ option. Type:
Check the box for PyDev. Do not worry about checking the box for PyDev Mylin. Click ‘Next’ at the bottom of the page.
6) Now you need to tell PyDev which python to use (needs to be version 2.7 for obspy). Under ‘Preferences’ in eclipse, expand ‘PyDev’ and then click on ‘Interpreter – Python’. Under ‘Python interperters’ click ‘New’. Type:
Name: Python 2.7
Excutable: /usr/bin/python (or /your/path/to/python2.7 on your machine)
In the next window, make sure to click the ‘/git/obspy’ and ‘site-packages’ libraries, along with the default libraries.
7) You should now be able to use the obspy modules and run the obspy tutorials.