Giter VIP home page Giter VIP logo

srfpython's Introduction

srfpython

  • programs for surface wave dispersion curves in python
  • compute, display, invert 1D depth models
  • based on Herrmann codes Computer Program in seismology

if you use this program, reference would be greatly appreciated
how to cite :

Lehujeur, M., Vergne, J., Schmittbuhl, J., Zigone, D., Le Chenadec, A., & EstOF Team (2018). Reservoir imaging using ambient noise correlation from a dense seismic network. Journal of Geophysical Research: Solid Earth, 123. https://doi.org/10.1029/2018JB015440

install

move to the installation path (e.g. "~/git") and get srfpython

cd ~/git
git clone http://github.com/obsmax/srfpython.git

create the virtual environment and activate it

conda create -n srfpython python=2.7
conda activate srfpython
# source activate srfpython # on old versions of anaconda

move to the repository, install the requirements and install the package

cd ~/git/srfpython
conda install --yes --file requirements.txt
pip install -e .

compile the fortran codes

cd ~/git/srfpython/srfpython/Herrmann/src90
./clean.sh 
./compile.sh

test the fortran codes using

python ~/git/srfpython/srfpython/Herrmann/Herrmann.py

if you plan to use jupyter notebooks with python2 (optional)

make sure the environment is activated

source activate srfpython

install with

conda install --yes notebook ipykernel
ipython kernel install --user

try the tutorials

for a simple dispersion curve example

cd ~/git/srfpython/tutorials/simple_dispersion_example
# follow instructions in readme.txt 

for an depth inversion example

cd ~/git/srfpython/tutorials/inversion_example
# follow instructions in readme.txt 

more in the jupyter notebooks

cd ~/git/srfpython/tutorials/tutorial0
jupyter notebook 

srfpython's People

Contributors

obsmax avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.