Coder Social home page Coder Social logo

lumindra / wphase Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eost/wphase

0.0 0.0 0.0 3.76 MB

Wphase is an extensive source-inversion tool for rapid characterization of earthquakes

License: GNU General Public License v3.0

Python 13.86% Shell 3.65% Makefile 0.95% C 75.23% Fortran 5.47% C++ 0.84%

wphase's Introduction

Wphase

The Wphase package is an extensive source-inversion tool allowing rapid characterization of seismic sources and is a reliable and straightforward method to resolve first-order attributes of large earthquakes.

For a complete documentation, please refer to the Wphase wiki page

Main contributors are Z. Duputel, L. Rivera and H. Kanamori (California Institute of Technology and Universite de Strasbourg / CNRS).

Wphase is licensed under the GNU General Public License (GPL) v3.

GPL Build Status

Citation

If you use the W-phase package for your own research, please cite the following articles:

  • Z. Duputel, L. Rivera, H. Kanamori, and G. Hayes, 2012. W-phase fast source inversion for moderate to large earhquakes (1990 - 2010), Geophysical Journal International, v. 189, iss. 2, p. 1125-1147.
  • G.P. Hayes, L. Rivera and H. Kanamori, 2009. Source inversion of the W phase: real-time implementation and extension to low magnitudes, Seismol. Res. Let., v. 3, 800-805.
  • H. Kanamori and L. Rivera, 2008. Source inversion of W phase: speeding tsunami warning, Geophys. J. Int., v. 175, 222-238.

Installation

Dependencies

  • csh shell
  • gcc, gfortran
  • python2.7 (or later)
  • You have to install numpy, matplotlib, basemap and netCDF4 to run some python scripts which make figures.
  • rdseed

To install these dependencies on MacOs, you can refer to this page.

Building the code

To install the code, we must first setup a few environment variables. If you use csh or tcsh:

setenv RDSEED       /path/to/rdseed/executable
setenv GF_PATH      /path/to/greens/functions/database
setenv WPHASE_HOME  /path/to/wphase/package

If you use bash:

export RDSEED=/path/to/rdseed/executable
export GF_PATH=/path/to/greens/functions/database
export WPHASE_HOME=/path/to/wphase/package

These variables are necessary both at installation time and at run time. In addition to these variables, it is handy to include the wphase bin directory into the PATH environment variable:

setenv PATH         ${PATH}:$WPHASE_HOME/bin

or in bash:

export PATH=${PATH}:$WPHASE_HOME/bin

All theses variable assignment can be included in your .tcshrc or your .bashrc file.

Once you have downloaded the last version of the W-phase package and that the above environment variables are properly defined. Then you can proceed as follows to compile the package:

cd ${WPHASE_HOME}/src
make -B

How to run W-phase

Instructions on how to run and use Wphase are available at the Wphase wiki page.

There is a quite complete document in the Wphase documentation and you can also check out the Wphase tutorial page which includes an example of run.

Development

Development is hosten on GitHub in the eost/wphase repository.

--

Report bugs to: [email protected] and [email protected]

wphase's People

Contributors

larivera avatar zduputel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.