Okada implementation in Python
This is a python implementation of the solution proposed by Okada in 1992. Please cite:
Okada, Y. (1992), Internal deformation due to shear and tensile faults in a half-space, Bulletin of the Seismological Society of America, 82(2), 1018–1040.
Dr Leah Langer kindly implemented her receiver elevation correction to provide a first order correction of the effect of topography on the evaluation of Green's functions. If you use this, please cite (and read) this paper: doi: 10.1016/j.tecto.2020.228566
Install directly from the repository root:
python -m pip install .This builds the extension with meson-python and installs okada4py into the active Python environment.
pip will install the Python build requirements declared in pyproject.toml. You only need a working C++ toolchain available on your system.
meson setup builddir --prefix /My/complete/path/to/the/install/dir
meson compile -C builddir
meson install -C builddir
Then update your PYTHONPATH variable to have it visible for python. In your .bashrc, it would look like : export PYTHONPATH=/My/complete/path/to/the/install/dir:$PYTHONPATH
meson setup builddir --prefix=$(python3 -c "import site; print(site.getsitepackages()[0])")
meson compile -C builddir
meson install -C builddir