A Python toolkit for evaluating analytical deformation models
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file okada-0.0.1.tar.gz.
File metadata
- Download URL: okada-0.0.1.tar.gz
- Upload date:
- Size: 40.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a09ee6d6daa28974cc0658dd84b87c656ecc6ca3c7975a0b99cf1a7005995dee
|
|
| MD5 |
e4e6cf81c227aaced8aa2f8afccf8617
|
|
| BLAKE2b-256 |
514d21adfcdafb1a62c239e97f09fe0996d301260b0c2f2ee2e9d200cdad78f4
|
File details
Details for the file okada-0.0.1-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: okada-0.0.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 71.2 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
103c51b04070073cae691edeca2fc6a9fba016709bb1695ee7a3f91cdc5e24e4
|
|
| MD5 |
48b5f9f5f8d1b50ca81e950405b12cd7
|
|
| BLAKE2b-256 |
8c6f5f916d76a82fef2a6c2c249f374d5f908dbc9883451598b8b5190fa5cba1
|
File details
Details for the file okada-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: okada-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 164.7 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaa69e443088024c21f4ced4b343a97b662b45318f25ff3aef14697e75db8231
|
|
| MD5 |
f64e0d304f48e39eb9cf82771f122635
|
|
| BLAKE2b-256 |
2bd6de81ac536d6ce018b74d4f70b0912a2b5420cef8bcd9441be900303c1b15
|
File details
Details for the file okada-0.0.1-cp312-cp312-macosx_14_0_arm64.whl.
File metadata
- Download URL: okada-0.0.1-cp312-cp312-macosx_14_0_arm64.whl
- Upload date:
- Size: 308.2 kB
- Tags: CPython 3.12, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a1a134edcb5380ecedef5145490229d51c57c63e23f394867461c6f821ffeaa
|
|
| MD5 |
fcd63661cdc76f850829c9c1a6f7b47a
|
|
| BLAKE2b-256 |
b94fcae06c15c479e860d9baf296f14f8d28896969a548d9e9e406ba5b66c4c6
|
File details
Details for the file okada-0.0.1-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: okada-0.0.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 71.2 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79d275da437f19891294e7892253135e12e1d9b480e33d4ed38113ca0d922225
|
|
| MD5 |
2005bda32dc64419ffd14af73b6e9a87
|
|
| BLAKE2b-256 |
b9ce19999ad1e3d911bc1dd6d55762ad77d4453a34901edcd8e3119284c8429b
|
File details
Details for the file okada-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: okada-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 164.7 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c114f413ba5ffcbc06cc409cacbd686cef24e0adcc4777b4b36424ab829c133f
|
|
| MD5 |
e7d92106eec021c309818c7ae399f8e1
|
|
| BLAKE2b-256 |
956e688b170eef9d9c9bb1cb0361b22e0a286cfe56201cf79abb0e3d5dcb129e
|
File details
Details for the file okada-0.0.1-cp311-cp311-macosx_14_0_arm64.whl.
File metadata
- Download URL: okada-0.0.1-cp311-cp311-macosx_14_0_arm64.whl
- Upload date:
- Size: 308.2 kB
- Tags: CPython 3.11, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ef91fa11a3672212c13ad264600399eb7c72108cc01f0619a41ca978d821f0b
|
|
| MD5 |
cdf94e4d52582ddd6fa894acd3880e1b
|
|
| BLAKE2b-256 |
12f1baaef55b270a2d065b02f831f884c1c61ec98ac188636855d37e1695b625
|