Skip to content
Snippets Groups Projects
README.md 1.1 KiB
Newer Older
  • Learn to ignore specific revisions
  • Clayton, Brandon Scott's avatar
    Clayton, Brandon Scott committed
    # Example 3: Using a custom sites file
    
    __Working directory:__ `/path/to/nshmp-haz/etc/examples/3-sites-file`
    
    Powers, Peter M.'s avatar
    Powers, Peter M. committed
    
    
    Clayton, Brandon Scott's avatar
    Clayton, Brandon Scott committed
    To compute hazard at more than one site, one may supply a comma-delimited (\*.csv)
     or [GeoJSON](http://geojson.org) (\*.geojson) formatted site data file instead:
    
    hazard ../../peer/models/Set1-Case1  sites.csv config.json
    
    hazard ../../peer/models/Set1-Case1 sites.geojson config.json
    
    Clayton, Brandon Scott's avatar
    Clayton, Brandon Scott committed
    The [site specification](https://github.com/usgs/nshmp-haz/wiki/sites)
    wiki page provides details on the two file formats. Note that with either format,
    if the name of a site is supplied, it will be included in the first column of any output curve files.
    
    __Results directory structure:__
    
    Clayton, Brandon Scott's avatar
    Clayton, Brandon Scott committed
    
    ```text
    
    3-sites-file/
      └─ hazout/
          ├─ config.json
          ├─ HazardCalc.log
          ├─ PGA/
          │   └─ curves.csv
          ├─ SA0P2/
          │   └─ curves.csv
          └─ SA1P0/
              └─ curves.csv
    ```
    
    
    Clayton, Brandon Scott's avatar
    Clayton, Brandon Scott committed
    <!-- markdownlint-disable MD001 -->
    
    #### Next: [Example 4 – A simple hazard map](../4-hazard-map/README.md)
    
    
    ---
    
    * [**Documentation Index**](../../../docs/README.md)