Skip to content
Snippets Groups Projects
README.md 1.58 KiB
Newer Older
  • Learn to ignore specific revisions
  • Clayton, Brandon Scott's avatar
    Clayton, Brandon Scott committed
    # Example 2: A custom configuration
    
    __Working directory:__ `/path/to/nshmp-haz/etc/examples/2-custom-config`
    
    Powers, Peter M.'s avatar
    Powers, Peter M. committed
    
    
    Navigate to the directory above and execute the following:
    
    hazard ../../peer/models/Set1-Case1 site.csv config.json
    
    ```
    
    In this example we've overridden the configuration supplied by the model. Specifically:
    
    * The upper end of each hazard curve has been truncated at 3 standard deviations.
    
    * Hazard curves have been saved as poisson probability instead of annual rate.
    
    Clayton, Brandon Scott's avatar
    Clayton, Brandon Scott committed
    * Hazard curves have been calculated for 3 `imts`
    
     ([intensity measures](https://earthquake.usgs.gov/nshmp/docs/nshmp-lib/gov/usgs/earthquake/nshmp/gmm/Imt.html),
    
    Clayton, Brandon Scott's avatar
    Clayton, Brandon Scott committed
      or spectral periods).
    * The `imls` (intensity measure levels or x-values) of the resultant curves
    have been explicitely defined for each `imt`.
    
    Powers, Peter M.'s avatar
    Powers, Peter M. committed
    See the [configuration specification](../../../docs/pages/Calculation-Configuration.md)
    
    Clayton, Brandon Scott's avatar
    Clayton, Brandon Scott committed
    for details on default values and supported options and formats.
    
    Powers, Peter M.'s avatar
    Powers, Peter M. committed
    
    
    __Results directory structure:__
    
    Clayton, Brandon Scott's avatar
    Clayton, Brandon Scott committed
    
    ```text
    
    2-custom-config/
      └─ hazout/
    
    Powers, Peter M.'s avatar
    Powers, Peter M. committed
          ├─ calc-config.json
    
          ├─ HazardCalc.log
          ├─ PGA/
    
    Powers, Peter M.'s avatar
    Powers, Peter M. committed
          │   ├─ curves.csv
          │   ├─ curves-truncated.csv
          │   └─ map.csv
    
    Powers, Peter M.'s avatar
    Powers, Peter M. committed
          │   ├─ curves.csv
          │   ├─ curves-truncated.csv
          │   └─ map.csv
    
    Powers, Peter M.'s avatar
    Powers, Peter M. committed
              ├─ curves.csv
              ├─ curves-truncated.csv
              └─ map.csv
    
    Clayton, Brandon Scott's avatar
    Clayton, Brandon Scott committed
    <!-- markdownlint-disable MD001 -->
    
    #### Next: [Example 3 – Using a custom sites file](../3-sites-file/README.md)
    
    Clayton, Brandon Scott's avatar
    Clayton, Brandon Scott committed
    * [__Documentation Index__](../../../docs/README.md)