Skip to content
Snippets Groups Projects
Commit d554387d authored by Powers, Peter M.'s avatar Powers, Peter M.
Browse files

temp remove rate example until fixed

parent d16f7480
No related branches found
No related tags found
2 merge requests!593Production Release | nshm-haz,!591Code review 479
...@@ -61,7 +61,7 @@ Note that in the output above, there are only disaggregation results for subduct ...@@ -61,7 +61,7 @@ Note that in the output above, there are only disaggregation results for subduct
will not be saved. will not be saved.
<!-- markdownlint-disable MD001 --> <!-- markdownlint-disable MD001 -->
#### Next: [Example 8 – Earthquake probabilities and rates](../8-probabilities/README.md) <!-- #### Next: [Example 8 – Earthquake probabilities and rates](../8-probabilities/README.md) -->
--- ---
......
# Example 8: Earthquake probabilities and rates
__Working directory:__ `/path/to/nshmp-haz/etc/examples/8-probabilities`
`nshmp-haz` can also calculate earthquake probabilities and rates at a location.
As with the `HazardCalc` and `DisaggCalc` programs, `RateCalc` takes a model, a site data file
or string, and an optional config file, which will control whether the distributions generated
are incremental or cumulative, and whether the distribution values are expressed as annual rates
or Poisson probabilities. The default (no config supplied) settings are for incremental
annual-rates. The `config.rate` elements also specify the cutoff `distance`, within which
all sources should be included, and a `timespan` used for conversion to Poisson probabilities.
For this example, the following system alias is helpful:
```Shell
alias rate='java -Xms4g -Xmx8g -cp /path/to/nshmp-haz/build/libs/nshmp-haz.jar gov.usgs.earthquake.nshmp.RateCalc'
```
Assuming a copy of the CONUS NSHM is available (see [Example 5](../5-complex-model)), execute:
```Shell
rate ../../../../nshm-conus sites.csv config-sites.json
```
to generate incremental, annual-rate output for a list of sites, or
```Shell
rate ../../../../nshm-conus map.geojson config-map.json
```
to generate a map of cumulative Poisson probabilities (i.e. P ≥ M).
Like `HazardCalc`, `RateCalc` observes the `config.output.dataTypes` `SOURCE`
option and will include a `source` directory with rates or probabilities for all
contributing source types.
__Results directory structure:__
```text
8-probabilities/
├─ hazout-rate-sites/
│ ├─ config.json
│ ├─ RateCalc.log
│ ├─ rates.csv
│ └─ source/
│ ├─ FAULT/
│ │ └─ probs.csv
│ └─ ...
└─ hazout-prob-map/
├─ config.json
├─ RateCalc.log
└─ probs.csv
└─ source/
├─ FAULT/
│ └─ rates.csv
└─ ...
```
---
* [**Documentation Index**](../../../docs/README.md)
{
"output": {
"dataTypes": ["SOURCE"],
"directory": "hazout-prob-map"
},
"rate": {
"distance": 10.0,
"valueFormat": "POISSON_PROBABILITY",
"distributionFormat": "CUMULATIVE",
"timespan": 50.0
}
}
{
"output": {
"dataTypes": ["SOURCE"],
"directory": "hazout-rate-sites"
}
}
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [[
[-123.0, 37.0],
[-121.0, 37.0],
[-121.0, 39.0],
[-123.0, 39.0],
[-123.0, 37.0]
]]
},
"properties": {
"spacing": 0.2,
"title": "San Francisco Bay Area"
}
}
]
}
name, lon, lat
Fresno CA, -119.75, 36.75
Los Angeles CA, -118.25, 34.05
Oakland CA, -122.25, 37.80
San Francisco CA, -122.40, 37.75
San Jose CA, -121.90, 37.35
Santa Rosa CA, -122.70, 38.45
Vallejo CA, -122.25, 38.10
Las Vegas NV, -115.15, 36.20
Reno NV, -119.80, 39.55
Eugene OR, -123.10, 44.05
Salt Lake City UT, -111.90, 40.75
Tacoma WA, -122.45, 47.25
Jackson WY, -110.75, 43.50
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