Skip to content
forked from obsmax/srfpython

compute surface wave dispersion curves in python using Herrmann's codes

Notifications You must be signed in to change notification settings

crs3s/srfpython

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

377 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

srfpython

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

Install

Pre-requisties

  • git
  • Anaconda3
  • gfortran

Install instructions

  • Go 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 py27-srfpython python=2.7 --yes
conda activate py27-srfpython
python --version  # must be 2.7.X, or conda failed, retry in new tty
  • Go to the cloned repository and install the package
# install in editable mode 
# i.e. changes in python programs do not require re-installing the package
cd ~/git/srfpython
python -m pip install -e .

# test the compilation using 
# (must work anywhere, no need to custom path or anything)
srfpython_tester.py
  • If you wish to use the jupyter notebooks with python2 (optional):
# make sure the environment is activated
conda activate py27-srfpython

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

Tutorials

for a simple dispersion curve example

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

for an depth inversion example

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

more in the jupyter notebooks

cd ~/git/srfpython/tutorials/10_notebooks
jupyter notebook 

Related references

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

About

compute surface wave dispersion curves in python using Herrmann's codes

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 41.4%
  • Python 28.0%
  • Jupyter Notebook 25.7%
  • Fortran 3.9%
  • Other 1.0%