Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneweiqiang committed Jul 8, 2021
1 parent e76414d commit 529db03
Show file tree
Hide file tree
Showing 8 changed files with 131 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# *GaMMA*: *Ga*ussian *M*ixture *M*odel *A*ssociation

## 1. Install
```bash
pip install gmma
```

## 2. Related papers:
- Zhu Weiqiang et al. Earthquake Phase Association using a Bayesian Gaussian Mixture Model (2021)
![Method](assets/diagram_gmma_annotated.png)


## 3. Examples:

- Synthetic Example

See details in the [notebook](): [example_synthetic.ipynb]()

![Association result](assets/result_eq05_err0.0_fp0.0_amp1.png)

- Real Example using PhaseNet picks

See details in the [notebook](): [example_phasenet.ipynb]()

![Associaiton result](assets/2019-07-04T18-02-01.074.png)

1 change: 1 addition & 0 deletions docs/README.md
Binary file added docs/assets/2019-07-04T18-02-01.074.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/diagram_gmma_annotated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/result_eq05_err0.0_fp0.0_amp1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions docs/example_phasenet.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"metadata": {
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": 3
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2,
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
]
}
62 changes: 62 additions & 0 deletions docs/example_synthetic.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"metadata": {
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.10"
},
"orig_nbformat": 4,
"kernelspec": {
"name": "python3",
"display_name": "Python 3.7.10 64-bit ('base': conda)"
},
"interpreter": {
"hash": "f4d5179fc222eb76bfd3dcff5bf88b43751287e77ddc0be170fe093e3076340e"
}
},
"nbformat": 4,
"nbformat_minor": 2,
"cells": [
{
"source": [
"# GaMMA association of PhaseNet picks"
],
"cell_type": "markdown",
"metadata": {}
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"1"
]
},
"metadata": {},
"execution_count": 2
}
],
"source": [
"1"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
]
}
14 changes: 14 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
site_name: "GaMMA"
site_description: 'GaMMA: earthquake phase association using a bayesian gaussian mixture model'
site_author: 'Weiqiang Zhu'
docs_dir: docs/
repo_name: 'wayneweiqiang/GMMA'
repo_url: 'https://github.com/wayneweiqiang/GMMA'
nav:
- Overview: README.md
- Synthetic Example: example_synthetic.ipynb
- PhaseNet Example: example_phasenet.ipynb
theme:
name: 'material'
plugins:
- mkdocs-jupyter

0 comments on commit 529db03

Please sign in to comment.