pyprop8
This package provides a lightweight Python implementation of the seismogram calculation algorithm set out in O'Toole & Woodhouse (2011), together with the source derivatives set out in O'Toole, Valentine & Woodhouse (2012). It is intended to provide a lightweight, easy-to-install seismological forward model suitable for use in teaching and research (in particular, to provide a computationally-cheap yet physically-realistic forward problem for use in the development and testing of inversion algorithms).
Full documentation is available here, and you can try the package out using Binder.
A list of projects that have made use of pyprop8 can be found here; please feel free to add your own.
Installation
The easiest way to get this package is through pip, e.g.
pip install pyprop8
Alternatively, you can clone this repository and ensure that the contents of the src/ directory are placed somewhere where they can be found by your Python installation, e.g. by setting the $PYTHONPATH environment variable.
Dependencies
The core functions of this package depend only on:
pyprop8 will also use tqdm if it is available, to display progress bars.
Some of the examples found in examples/ may have additional dependencies and requirements, including Jupyter and matplotlib. Look for a requirements.txt file in the relevant example directory; you can install the necessary pacakges using the command pip install -r requirements.txt.
Citing this package
If you make use of this code, please acknowledge the work that went into developing it! In particular, if you are preparing a publication, we would appreciate it if you cite both the paper describing the general method, and this specific implementation:
- O'Toole, T.B. & J.H. Woodhouse (2011), "Numerically stable computation of complete synthetic seismograms including the static displacement in plane layered media", Geophysical Journal International, 187, pp.1516-1536, doi:10.1111/j.1365-246X.2011.05210.x
- Valentine, A.P. & M. Sambridge (2022), "
pyprop8: A lightweight code to simulate seismic observables in a layered half-space", Journal of Open Source Software, 7, 4217, doi:10.21105/joss.04217.
If your work relies on being able to calculate the source parameter derivatives, you should also cite the paper describing how these are obtained:
- O'Toole, Valentine & Woodhouse (2012), "Centroid–moment tensor inversions using high-rate GPS waveforms", Geophysical Journal International, 191, pp.257-270, doi:10.1111/j.1365-246X.2012.05608.x.
Acknowledgements
This package was developed at the Australian National University and Durham University by Andrew Valentine. It builds on earlier work by Tom O'Toole and John Woodhouse, and has benefited from sight of code written by those authors. In particular, the exponential rescaling of the propagator matrices is inspired by their implementation. However, the present code has been developed 'from scratch' based on the published algorithms.
This work has received support from the Australian Research Council under grants DE180100040 and DP200100053.
Metadata
Release files for pyprop8 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyprop8-1.1.5.tar.gz | 48.4 kB | Without provenance | Details for pyprop8-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyprop8-1.1.5-py3-none-any.whl | Python 3 | none | any | Details for pyprop8-1.1.5-py3-none-any.whl |
Total release size: 96.7 kB
Release files / pyprop8-1.1.5.tar.gz
| Download URL | pyprop8-1.1.5.tar.gz |
|---|---|
| Size | 48.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba6e438d98a4b75dfd67efc8765b83c7ae4a90788efa011bf85618e8f393c3db
|
|
BLAKE2b-256 checksum How to use checksums |
17881aaf31a8d3dd2f0b12b3e93912e42ba35948a21165adb8c6978dcf739a50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Release files / pyprop8-1.1.5-py3-none-any.whl
| Download URL | pyprop8-1.1.5-py3-none-any.whl |
|---|---|
| Size | 48.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2659a553ad8709834e0f08e82a3fa4018e28c11275b0693a6a4e89d2a071820f
|
|
BLAKE2b-256 checksum How to use checksums |
0b2a71dd778924f79ebf821107b02b2ea74cc060053ad05f60877113d8c1470a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Security for pyprop8 1.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.