OpenSHA

Open-Source Seismic Hazard Analysis (OpenSHA)

Tutorials

Hazard Curve Calculator

This tutorial demonstrates how to replicate the hazard curve figures presented.

Start by downloading and launching the Hazard Curve Calculator application and follow the instructions below to reproduce various figures.

UCERF3 Epistemic List ERF

  1. Choose the IMR (or attenuation relationship) by choosing Campbell and Bozorgnia (2014) from the first list in the "Set IMR" window.
  2. Set the IMT (intensity-measure type) by choosing "PGA" from the first list in the "Set IMT" window.
  3. Set the latitude and longitude in the "Set Site Params" window to be 37.8 and -122.417, respectively. This is a site near downtown San Francisco that happens to be a class "B" site according to the site-conditions map of Wills et al. (2000). An alternative way to set this latitude and longitude is to select "Sites of Interest" from the "Control Panels" list at the bottom of the application, and then choose "San Francisco Class B" from the window that pops up.
  4. Choose an ERF (Earthquake Rupture Forecast) by doing the following: click the "ERF & Time Span" tab at the top of the application, and under the "Eqk Rup Forecast" list at the top of the sub-window, choose "UCERF3 Epistemic List ERF" (you might need to scroll down to see this option).
  5. In the "Epistemic List Control" that automatically pops up, click the box next to "Plot Average" (the box next to "Plot all curves" should already be selected). Also choose "Plot Fractiles" from the list below, and click "Update Fractile List" at the bottom of the popup window. The window will automatically close when done.
  6. In the main application, set the various ERF's parameters (listed below the chosen ERF) as follows:
    • Backgound Seismicity = "Exclude"
    • Probability Model = "Poisson"
    • Deformation Model = "Geologic"
    • Scaling Relationship = "(all)"
    • Slip Along Rupture (Dsr) = "Uniform"
    • Inversion Model = "Characteristic (Constrained)"
    • Total Mag 5 Rate = "RATE_6p5"
    • MMax Off Fault = "MAG_7p3"
    • Moment Rate Fixes = "NONE"
    • Spatial Seismicity PDF = "UCERF3"
    All other parameters should be left at their default.
  7. Initiate the computation by clicking "Compute" at the bottom of the application.
  8. Convert to a log-log plot by clicking both the "X" and "Y" check-boxes next to "Log scale" at the bottom of the application.
  9. Change the color scheme by clicking "Plot Prefs" at the bottom of the application and in the popup window set the following for each Dataset:
    • DATASET #1 Curves: Color as Green and Size as 2
    • DATASET #1 Fractiles: Color as Blue and Size as 2
    • DATASET #1 Mean: Color as Red and Size as 2
    Note that there is an active bug (#159) that may result in unlabelled datasets for fractiles and curves. If this occurs for you, try swapping color assignments to replicate the plot below.
  10. Click "Done". Change the axis limits by clicking "Set Axis" at the bottom of the application; then choose "Custom Scale" from the top of the popup window and set "Min X" = 1.0E-2, "Max X" = 1.0, and "Min Y" = 0.1. Click "OK" to apply the changes and close the window.

The window you now see represents the screenshot shown in Figure 1.

Figure 1
Figure 1: Plots with all scaling relationships for the UCERF3 Epistemic List ERF

National Seismic Hazard Model 2023 - Western US Branch Averaged ERF

(assumes completion of steps 1-10 above)

  1. Put the present plot aside by clicking "Peel Off" at the bottom of the application (or click "Clear Plot")
  2. In the main application, make it so we'll only plot the mean curves by doing the following: in the "Control Panels" list at the bottom of the application, choose "Epistemic List Control" (you might need to scroll down to see it). Deselect "Plot all curves", and choose "No Fractiles". Only the "Plot Average" option should remain selected
  3. Return to the "IMR, IMT & Site" tab. Set IMT to "PGA" in the "Set IMT" window and set the IMR to "USGS NSHM23 Active Crustal" under "Set IMR"
  4. Go to the "ERF & Time Span" tab and set the ERF to "NSHM23-WUS (crustal only, excl. Cascadia) Branch Avg ERF"
  5. Compute the average by again clicking "Compute" at the bottom of the application
  6. Now redo this calculation using a different IMR (attenuation relationship) by doing the following: click the "IMR, IMT & Site" tab at the top of the application (if you haven't already done this), under the "Set IMR" window choose "Abrahamson, Silve & Kamai (2014)" from the list at the top, set the IMT to "PGA" in the "Set IMT" window below, and click "Compute" at the bottom
  7. Repeat step (16) for the "Boore, Stewart, Sheehan & Atkinson (2014)", "Campbell & Bozorgnia (2014)" and "Chiou & Youngs (2014)" attenuation relationships in that order (and be sure to set the IMT to PGA each time)
  8. Increase the size of the lines to 2.0 (by clicking "Plot Prefs"). Change the axis range (by clicking "Set Axis") such that "Min X" = 0.01, "Max X" = 0.2, and "Min Y" = 0.5. You have now reproduced Figure 2. Note that you can save a png version of the image by selecting the "Save" option in the "File" menu at the upper left corner of the application or by clicking on the save icon symbol at the top left of the application
Figure 2
Figure 2: NSHM23-WUS ERF plotted with different IMRs

Varied Time Spans

(assumes completion of steps 1-18 above)

  1. Click either "Peel Off" or "Clear Plot" at the bottom of the application
  2. In the main application, re-select the "USGS NSHM23 Active Crustal" IMR (attenuation relationship), set the IMT to PGA, and click "Compute" at the bottom of the application. This re-plots the mean curve shown in Figure 2
  3. Click the "ERF & Time Span" tab at the top of the application, and on the right side change the time-span "Duration" from 30 to 20 years. Click "Compute" at the bottom of the application
  4. Repeat step (22) for durations of 10, 5, and 1 (in that order)
  5. Set the axis range such that "Min X" = 1.0E-3, "Max X" = 5.0, and "Min Y" = 0.01. Click "OK" to apply the changes and close the window
  6. After increasing the size of the lines to 2.0, except the black line to set to 4.0 (by clicking "Plot Prefs"), and changing the axis range (by clicking "Set Axis") like in step (10), you have now reproduced Figure 3
Figure 3
Figure 3: NSHM23-WUS ERF plotted over different time spans

Attenuation Relationship Plotter

This short guide explains the basic steps required to plot and compare the Attenuation Relationships implemented in OpenSHA.

Creating a Plot

  1. Select an Attenuation Relationship from the "Choose Model" combo box (located directly above the plot window).
  2. Choose an IMT from the combo box at the upper right (the options will depend on what's supported by your chosen Attenuation Relationship)
  3. Below that, choose from among the following to plot on the Y-axis:
    • Median
    • Standard Deviation
    • Exceedance Prob (for specified IML)
    • IML at Exceedance Prob
  4. Next, choose what you want to plot on the X-axis. The options are generally any parameter applicable to your chosen attenuation relationship that represents a numerical value (the options also depend on what you've chosen for the Y-axis).
  5. Finally, set all the other parameters that your chosen attenuation relationship depends upon (the list, which is on the lower right, depends on what you've chosen for the Y-axis). HINT: mousing over the parameter name should give you more info about that Parameter, and mousing over where you enter numerical values will show any limits on the allowed values for the parameter
  6. Click the "Add Curve" button to calculate and show the plot.

You can add multiple curves, but the plot will automatically clear if you change what’s plotted on either axis (e.g., you can’t have both magnitude and distance on the X-axis; however, you can plot different Distance Parameters simultaneously on the X-axis).

Other Options

Known Issues

Scenario ShakeMap

This tutorial demonstrates how to replicate Figure 1 as presented in:

Field, E. H, H. A. Seligson, N. Gupta, V. Gupta, T. H. Jordan, and K. Campbell (2005), Loss Estimates for a Puente Hills Blind-Thrust Earthquake in Los Angeles, California, Earthquake Spectra, 21, p. 329-338, DOI: 10.1193/1.1898332.

And also explains some additional features of the application. Start by downloading and launching the Scenario ShakeMap application and follow the instructions below to reproduce various figures.

The referenced figure is shown below. This figure from “Loss Estimates for a Puente Hills” should not be confused with “Figure 1” from the Hazard Curve Application tutorial.

field-et-al-2005-los-estimates-Figure_1
The first figure from Field et al 2005: Loss Estimates for a Puente Hills Blind-Thrust Earthquake in Los Angeles, California

Figure 1A

  1. Under the "Intensity-Measure Relationship" tab, choose "PGA" from the "IMT" menu, and then choose "Abrahamson & Silva (1997)" from the "IMR" menu.
  2. Under the "Region and Site Params" tab, set the following as:
    • "Min Longitude" = -119
    • "Max Longitude" = -117
    • "Min Latitude" = 33.5
    • "Max Latitude" = 34.5
    • "Grid Spacing" = 0.016667
    • "Set Site Params" = "Use site data providers"
    • "Default AS Site Type" = "Deep-Soil"
  3. Under the "Earthquake Rupture" tab set the following:
    • "Select Method of Getting Eqk Rupture" = "Custom Eqk Rupture"
    • "Rupture Type" = "Finite source rupture"
    • "Magnitude" = 7.2
    • "Rake (degrees)" = 90
  4. Now click "Set Fault Surface" & set the following:
    • "Grid Spacing (km)" = 1.0
    • "Num. of Fault Trace Points" = 4
  5. Click "Fault Latitudes" and enter the following:
    • Lat-1 (Degrees) = 33.9451
    • Lat-2 (Degrees) = 33.9423
    • Lat-3 (Degrees) = 33.9746
    • Lat-4 (Degrees) = 34.0768
    and click "Update Latitudes" when done.
  6. Likewise for "Fault Longitudes":
    • Lon-1 (Degrees) = -117.8679
    • Lon-2 (Degrees) = -118.0315
    • Lon-3 (Degrees) = -118.1253
    • Lon-4 (Degrees) = -118.3194
  7. "Num. of Dips" = 1
  8. Click "Dips" and set it as 27 degrees
  9. Click "Depths" and set:
    • "Depth-1 (km)" = 5.0
    • "Depth-2 (km)" = 17.0
  10. "Finite Fault Type" = "Stirling"
  11. "Ave Dip Direction (degrees) " = leave this blank (so direction is perpendicular to ave strike)
  12. Now click "Make Simple Fault" at the bottom
  13. Finally, leave "Set Hypocenter Location" un-selected
  14. Click the "Exceedance Level/Probability" tab and set:
    • "Map Type" = IML@Prob
    • "Probability" = 0.5
    These settings will give us a map of the median intensity-measure level (IML).
  15. Click the "Map Attributes" tab and set the following:
    • "Color Scheme" = "MaxSpectrum.cpt"
    • "Color Scale Limits" = "Manually"
    • "Color-Scale Min" = 0.0
    • "Color-Scale Max" = 1.0
    • "Topo Resolution (arc-sec)" = "18 sec US"
    • "Highways in plot" = "None"
    • "Coast" = "Draw & Fill"
    • "Image Width (inches)" = 6.5
    • "Plot Log" should NOT be selected
    • "Generate Hazus Shape Files" should not be selected
    • "Rupture-Surface Plotting" = "Draw Perimeter"
  16. Now click "Make Map" at the bottom of the application and you should see Figure 1A in a few seconds.

Figure 1B

(assumes completion of all prior steps)

  1. Click the "Earthquake Rupture" tab, change the Magnitude to 7.5.
  2. Click "Make Map" at the bottom, and in a few seconds you should see Figure 1B.

Figure 1C

(assumes completion of all prior steps)

  1. Change the Magnitude back to 7.2.
  2. Click the "Intensity-Measure Relationship" tab and change the IMR parameter to "Boore, Joyner,& Fumal (1997)".
  3. Clicking "Make Map" at the bottom you should see Figure 1C.

Figure 1D

(assumes completion of all prior steps)

  1. Click the "Earthquake Rupture" tab, change the Magnitude to 7.5.
  2. Click "Make Map" at the bottom, and you should see Figure 1D.

Figure 1E

(assumes completion of all prior steps)

  1. Click the "Intensity-Measure Relationship" tab and change the IMT parameter to "SA" and the "SA Period" parameter to 1.0. Also change the IMR parameter to "Abrahamson & Silva (1997)".
  2. Now click the "Map Attributes" tab and change the "Color-Scale Max" parameter to 2.11.
  3. Click "Make Map" and you should see Figure 1E.

NOTE - the PGV calculations in the paper assume that PGV is proportional to 1-sec SA according to the Newmark Hall (1982) relationship:

1-sec SA = 1.056 PGV (SI units)

Therefore, the SA plot just made is identical to the PGV plot in the paper.

Figure 1F

(assumes completion of all prior steps)

  1. Click the "Intensity-Measure Relationship" tab and change the IMR parameter to "Field (2000)".
  2. Click "Make Map" to produces the final image in the plot (Figure 1F).

Why do the Images Look Different?

What’s the Difference Between the “Stirling” and “Frankel” Finite Fault Types?

The best way to see this is to compare the difference.

What is the Other Way of Selecting an Earthquake Rupture?

Besides creating a custom earthquake rupture (what we did above), you can also choose one from any available Earthquake Rupture Forecast (ERF). For example, one can compute a Scenario ShakeMap for one of the Puente Hills ruptures defined in the ERF used to make our National Hazard Maps.

Generate HAZUS Shape Files

Copyright ©2025 University of Southern California. All rights reserved. License—Disclaimer

This website is generated automatically from the OpenSHA wiki on GitHub, and is powered by GitHub Pages, Jekyll, and this GitHub Action.