-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
marius
committed
Sep 16, 2024
1 parent
21110d5
commit 0ed29dc
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Chimer | ||
|
||
*Earthquake Moment Magnitude Estimation from Peak Ground Motion* | ||
|
||
 | ||
[](https://github.com/astral-sh/ruff) | ||
[](https://pre-commit.com/) | ||
|
||
*Chimer* is a framework for earthquake moment magnitude estimation from observed peak ground motions (PGM). It builds on top of `pyrocko.gf` Green's function data bases for forward modelling seismic sources and waveforms. | ||
|
||
Key features include: | ||
|
||
* Creation of synthetic ground motion databases | ||
* Caluclation of statistical peak acceleration, velocity and displacement | ||
* Forward modelling of PGM | ||
|
||
## Example | ||
|
||
```python | ||
from chimer.magnitude_store import PeakAmplitudesBase, PeakAmplitudesStore | ||
|
||
from pyrocko import gf | ||
|
||
KM = 1e3 | ||
|
||
engine = gf.LocalEngine(use_config=True) | ||
|
||
peak_amplitudes = PeakAmplitudesBase( | ||
gf_store_id=store_id, | ||
quantity="displacement", | ||
) | ||
|
||
PeakAmplitudesStore.set_engine(engine) | ||
store = PeakAmplitudesStore.from_selector(peak_amplitudes) | ||
|
||
await store.compute_site_amplitudes(source_depth=2 * KM, reference_magnitude=1.0) | ||
await store.find_moment_magnitude( | ||
source_depth=2 * KM, | ||
distance=10 * KM, | ||
observed_amplitude=0.0001, | ||
) | ||
``` | ||
|
||
## Installation | ||
|
||
Simple installation from GitHub. | ||
|
||
```sh | ||
pip install git+https://github.com/pyrocko/chimer | ||
``` | ||
|
||
## Citation | ||
|
||
Please cite chimer as: | ||
|
||
> Torsten Dahm, Daniela Kühn, Simone Cesca, Marius Paul Isken, Sebastian Heimann, Earthquake Moment Magnitudes from Peak Ground Displacements and Synthetic Green's Functions, Seismica, 2024, *submitted* | ||
## License | ||
|
||
Contribution and merge requests by the community are welcome! | ||
|
||
Qseek was written by Marius Paul Isken and is licensed under the GNU GENERAL PUBLIC LICENSE v3. |