Rabu, 28 Mei 2014

Environment setting Wphase

export SACHOME=/usr/local/sac
export PATH=${PATH}:${SACHOME}/bin
export SACAUX=${SACHOME}/aux
export SAC_PPK_LARGE_CROSSHAIRS=1

export GMTHOME=/usr/local/GMT4.5.2
export PATH=${PATH}:${GMTHOME}/bin
export MANPATH=${MANPATH}:${GMTHOME}/man
export NETCDFHOME=/usr/local/netcdf-4.0

export RDSEED=/usr/local/rdseedv5.0/rdseed
export WPHASE_HOME=/home/sugeng/wphase_pack
export PATH=${PATH}:${WPHASE_HOME}/bin
export GF_PATH=${WPHASE_HOME}/GFS
export GMT_BIN=${GMTHOME}/bin

export JAVA_HOME=/usr/java/jre1.6.0_26/
export PATH=${PATH}:${JAVA_HOME}/bin:/home/sugeng/iaspei-tau/bin
export SACHEAD=/usr/local/sac
export MSEED2SAC=/usr/local/mseed2sac/mseed2sac
export PATH=${PATH}:${SACHOME}/bin:/home/sugeng/iaspei-tau/bin
export PYTHONPATH=${PYTHONPATH}:/home/sugeng/QUAKEDURATION


Install Wphase

Instal RdSEED
=============
1. Simpan RdSEED dalam root /usr/local
2. Buka extract dan masuk ke directory RdSEED
    $ tar -xvf rdseedv4.8.tar.gz
    $ cd rdseedv4.8

3. Tambahkan dalam .bashrc
    export RDSEED=/usr/local/rdseedv4.8/rdseed

4. Compile & jalankan dalam symbolic link agar dapat dibaca di usr/bin dengan me-refer pada posisi sebenarnya sesuai Environment setting
    $ make
    $ ln -s /usr/local/rdseedv4.8/rdseed rdseed

5. RdSEED sudah bisa dipanggil di user
    $ rdseed


Instal Wphase
=============
1. Masuk ke directory /home/user
2. Tempatkan dan buka extract file wphase_pack_r119.tgz
    $ tar -xzvf wphase_pack_r119.tgz
    $ cd wphase_pack
    $ ./configure

3. Cek file dalam folder bin, apakah sudah lengkap?

4. Copy & paste folder Green Fuction (GFS) ke dalam wphase_pack dengan waktu cukup lama.

5. Instal fortran
    $ sudo apt-get install gfortran
    $ sudo apt-get update
    $ sudo apt-get install csh

6. Buat directory khusus SEEDS dan event khusus
    $ mkdir SEEDS
    $ mkdir Benermeriah2013

7. Dalam folder Benermeriah2013 harus ada file CMTSOLUTION_temp dan i_master yang tersambung ke folder SEEDS

8. Dalam folder SEEDS harus ada file gempa ber-ekstension seed


Running Wphase
==============
1. ../bin/extract.csh

2. ../bin/calc_fast_synths_ZNE.csh

3. ../bin/prepare_wp_ZNE.csh

4. ../bin/wpinversion_ZNE

5. ../bin/wp_grid_search_ZNE.py

6. ../bin/RUNA3_ZNE.csh

7. ../bin/traces_6t_global.gmt

8. ../bin/make_cwp_all_ZNE.gmt