Skip to content
Snippets Groups Projects
Commit 3068e6f5 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

format

parent 4d5b5f8a
No related branches found
No related tags found
1 merge request!468Bug and Code Style Checker
......@@ -40,4 +40,3 @@ __Results directory structure:__
```
#### Next: [Example 7 – Deaggregation](../7-deaggregation)
......@@ -75,4 +75,3 @@ __Results directory structure:__
Note that in the output above, there are only deaggregation results for subduction GMMs (e.g. `AB_03_CASCADIA_SLAB`) for sites closer to the Cascadia subduction zone; empty results will not be saved.
#### Next: [Example 8 – Earthquake probabilities and rates](../8-probabilities)
......@@ -39,4 +39,3 @@ __Results directory structure:__
├─ RateCalc.log
└─ probs.csv
```
......@@ -10,4 +10,3 @@ alias hazard='java -cp /path/to/nshmp-haz/build/libs/nshmp-haz.jar gov.usgs.eart
Because each example builds on prior concepts, it is best step through all the examples, however quickly.
#### Start: [Example 1 – A simple hazard calculation](1-hazard-curve)
Using nshmp-haz with Python
------------------------------
There are a few different packages that will allow you to call Java code from Python. This example uses jpype. It also uses NumPy to simplify working with the arrays returned by the ground motion model calculators.
There are a few different packages that will allow you to call Java code from Python. This example uses jpype. It also uses NumPy to simplify working with the arrays returned by the ground motion model calculators.
#### Requirements
1. A [build](https://github.com/usgs/nshmp-haz/wiki/building-&-running) of nshmp-haz.
2. [jpype](http://jpype.readthedocs.io/en/latest/install.html)
3. [NumPy](http://www.numpy.org/)
3. [NumPy](http://www.numpy.org/)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment