Skip to main content

OkadaPy is a cross-platform Python package for the analytical computation of displacement, strain, and stress fields..

Key features

OkadaPy provides an efficient implementation of the equations set out in Okada, 1992, for the computation of the displacement induced by either a finite rectangular source or an infinitesimal point source in an isotropic elastic halfspace. It is a free and open-source alternative to a number of functions available in the MATLAB package Coulomb, primarily:

  • computing displacements induced by the aforementioned sources;
  • computing the corresponding strain and stress tensors from these displacements;
  • and visualising these fields.

Documentation

Documentation for OkadaPy is hosted here.

Installation

OkadaPy requires Python version 3.11 and above. The package will be made available through the Python Package Index (PyPI), at which time it will be possible to install via pip:

pip install okadapy

Until then, it can be installed from source, providing a suitable C compiler is available:

git clone https://github.com/hemmelig/OkadaPy
cd OkadaPy
pip install .

For further information regarding installation—including virtual environment management and installation from source—please consult our documentation.

Usage

Tutorial material is in the works for the package.

I previously wrote a wrapper package for the MATLAB package Coulomb, which made use of the MATLAB engine for Python. This is a replacement for this tool, built around a core library of compiled C code.

Citation

If you use OkadaPy in your work, please cite the following:

OkadaPy Developers (2024). OkadaPy: v0.0.1 (v0.0.1). Zenodo. https://doi.org/10.5281/zenodo.

Toda, S., Stein, R. S., Sevilgen, V., & Lin, J. (2011). Coulomb 3.3 Graphic-rich deformation and stress-change software for earthquake, tectonic, and volcano research and teaching—user guide. US Geological Survey open-file report, 1060(2011), 63.

Contributing to OkadaPy

Contributions to OkadaPy are welcomed. The first stop should be to reach out, either directly or—preferably—via the GitHub Issues panel, to discuss the proposed changes. Next, simply fork the OkadaPy repository, install the package with the developer options enabled (that is, using pip install okadapy[dev]), make your changes/add your new contribution, then make a pull request. All contributors to OkadaPy will be listed as authors on the releases.

Bug reports, suggestions for new features and enhancements, and even links to projects that have made use of OkadaPy are most welcome.

See our contributions page for more information.

Contact

Any comments/questions can be directed to:

  • Conor Bacon - cbacon [ at ] ldeo.columbia.edu

License

OkadaPy is free and open source, distributed under the GPLv3 License. Please see the LICENSE file for a complete description of the rights and freedoms that this provides the user.

Metadata

Release files for okada 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for okada 0.0.1
File Size Uploaded
okada-0.0.1.tar.gz 40.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for okada 0.0.1
File
okada-0.0.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
okada-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
okada-0.0.1-cp312-cp312-macosx_14_0_arm64.whl CPython 3.12 CPython 3.12 macOS 14.0+ ARM64 Details
okada-0.0.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
okada-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
okada-0.0.1-cp311-cp311-macosx_14_0_arm64.whl CPython 3.11 CPython 3.11 macOS 14.0+ ARM64 Details

Total release size: 1.1 MB

Release files / okada-0.0.1.tar.gz

Download URL okada-0.0.1.tar.gz
Size 40.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a09ee6d6daa28974cc0658dd84b87c656ecc6ca3c7975a0b99cf1a7005995dee
BLAKE2b-256 checksum
How to use checksums
514d21adfcdafb1a62c239e97f09fe0996d301260b0c2f2ee2e9d200cdad78f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.7

Release files / okada-0.0.1-cp312-cp312-win_amd64.whl

Download URL okada-0.0.1-cp312-cp312-win_amd64.whl
Size 71.2 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
103c51b04070073cae691edeca2fc6a9fba016709bb1695ee7a3f91cdc5e24e4
BLAKE2b-256 checksum
How to use checksums
8c6f5f916d76a82fef2a6c2c249f374d5f908dbc9883451598b8b5190fa5cba1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.7

Release files / okada-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL okada-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 164.7 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
aaa69e443088024c21f4ced4b343a97b662b45318f25ff3aef14697e75db8231
BLAKE2b-256 checksum
How to use checksums
2bd6de81ac536d6ce018b74d4f70b0912a2b5420cef8bcd9441be900303c1b15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.7

Release files / okada-0.0.1-cp312-cp312-macosx_14_0_arm64.whl

Download URL okada-0.0.1-cp312-cp312-macosx_14_0_arm64.whl
Size 308.2 kB
Tags CPython 3.12 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
1a1a134edcb5380ecedef5145490229d51c57c63e23f394867461c6f821ffeaa
BLAKE2b-256 checksum
How to use checksums
b94fcae06c15c479e860d9baf296f14f8d28896969a548d9e9e406ba5b66c4c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.7

Release files / okada-0.0.1-cp311-cp311-win_amd64.whl

Download URL okada-0.0.1-cp311-cp311-win_amd64.whl
Size 71.2 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
79d275da437f19891294e7892253135e12e1d9b480e33d4ed38113ca0d922225
BLAKE2b-256 checksum
How to use checksums
b9ce19999ad1e3d911bc1dd6d55762ad77d4453a34901edcd8e3119284c8429b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.7

Release files / okada-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL okada-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 164.7 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
c114f413ba5ffcbc06cc409cacbd686cef24e0adcc4777b4b36424ab829c133f
BLAKE2b-256 checksum
How to use checksums
956e688b170eef9d9c9bb1cb0361b22e0a286cfe56201cf79abb0e3d5dcb129e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.7

Release files / okada-0.0.1-cp311-cp311-macosx_14_0_arm64.whl

Download URL okada-0.0.1-cp311-cp311-macosx_14_0_arm64.whl
Size 308.2 kB
Tags CPython 3.11 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
9ef91fa11a3672212c13ad264600399eb7c72108cc01f0619a41ca978d821f0b
BLAKE2b-256 checksum
How to use checksums
12f1baaef55b270a2d065b02f831f884c1c61ec98ac188636855d37e1695b625
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.0.1 This release

7 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page