Saturday, December 7, 2013

Installing SeismicUnix in MacOS X Mavericks

How to install Seismic Unix on mac OS X Mavericks

Seismic Unix is a open source seismic processing package supported by Central for Wave Phenomena (CWP) at the Colorado School of Mines. Seismic Unix (SU) package (latest 43R4) can be downloaded from  Seismic Unix Home page


Install XQuartz if not installed previously.


Here is step-by-step installation process in mac OS environment.

1. Download tar file in the path-----Users/You/cwpsu. It is better not to download in root

2. Uncompress or Untar the file using

                tar -xvf cwp_su_all_43R4.tar

3. In home folder, check for .bash_profile and set CWPROOT environment after editing it as

Create .bash_profile 
In Terminal, Go to home folder.
Type touch .bash_profile to create new .bash_profile file.
Open and edit with TextEdit, by typing open -e .bash_profile

 An example of .bash_profile  
             
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:.
BASH_ENV=$HOME/.bashrc
USERNAME="root"

export CWPROOT=Users/You/cwpsu
PATH=$PATH:/Users/You/cwpsu/bin: .
export PATH

4. Insert command - source .bash_profile 

               You can check environment by
               echo $CWPROOT

5. In cwpsu/src, rename Makefile.config (or delete) --> Makefile.configXX. 
Copy Makefile.config_MacOSX_Lion from the folder cwpsu/src/configs to the folder cwpsu/src. Rename as Makefile.config. 

(>< Make file for  OSX Lion works fine for OSX Mavericks)

              Rename Makefile.config_MacOSX_Lion----->Makefile.config (In folder cwpsu/src)


$CWPROOT/src/Makefile.config

6. Install by entering command - make install

7. Type command - make xtinstall 

8. Check by typing command - suplane | suximage &

For help and tutorials see SU Wiki Guide

Enjoy Seismic Unix !!