wiki:OAF Research App

Operational Aftershock Forecasting (OAF) Research App

We have a first-draft GUI-based app available here:

Download

which allows you to fetch data for any event in ComCat? and compute sequence-specific RJ aftershock parameters (with limited options at this point).

You should be able to double click the application to launch it (see TROUBLE SHOOTING JAVA below if not).

The GUI is simply a wrapper around the code we are writing for the operational system; Ned has been writing the latter and Kevin has built the GUI and enabled access to ComCat?. It has a long way to go, but it’s ready for your initial feedback on what types of things you’d like see added.

Tutorial

Once launched, you’ll see a bunch of adjustable parameters on the left (see screen shot below); mouse over the titles to get more info on each. For now, just click “Fetch Data” to collect a weeks worth of aftershocks following the Nepal earthquake (the default), or enter any other USGS Event ID obtained from http://earthquake.usgs.gov/earthquakes (you sometimes have to dig a bit to find the IDs, which look something like “us20002qn7”). The default region used for collecting data is the two-step approach outlined in Jeanne’s doc (and with a min and max depth of 0 and 20 km, respectively).

At this point you can view a map of epicenters (under the Hypocenters tab, example shown below), a magnitude frequency distribution or MFD (under the Mag/Num? Dist tab), a plot of magnitudes as a function of time (Mag/Time? Plot tab), and a cumulative number of earthquakes plot (Cumulative Num Plot tab). There is also a Console tab that writes out some useful information, such as Mmaxc (the mode of the MFD, which is also shown in the MFD plot), and a Catalog tab which allows you to view the aftershocks in a 10-column format.

Hypocenter Plot for the 2015 Nepal Earthquake

The next thing to do is to set the magnitude of completeness Mc For Sequence, which defaults to Mmaxc+0.5, and to set the Magnitude Precision (network rounding, where the default is 0.1; we have no way of getting this from ComCat?, so work is needed if this is important).

Then click “Compute b” and the maximum likelihood b-value will be set in the “b-value” parameter just below (and the fit will be added to the MFD plot). Either keep this b-value or change it to something else (the plot will update too). An example MFD plot with the b-value added is shown below. A dashed line will also be added to the Cumulative Num Plot which estimates the number of earthquakes using generic aftershock parameters. These generic parameters are dependent on the tectonic regime of the mainshock.

Magnitude/Number plot with B-Value estimated

Next, fill in the range of values for the grid search we will do over the aftershock-parameters (a, p, and c), or leave at default values. To fix one of the parameters, set the min=max like the default for c.

Hit “Compute” and the maximum-likelihood values for a, p, and c will be filled in, and various marginal PDFs can be viewed under the Model PDFs tab. For example, you can see the resultant 2D PDF for p vs a in the following screen shot of the app:

Parameter PDF with Time Dependent Mc

At this point a black solid is added to the Cumulative Num Plot using these calculated aftershock parameters.

The calculation applies a time dependent magnitude of completeness by default, with associated parameters (G, H, and Mcat). You can disable this feature and use Mc for Sequence instead by deselecting the Apply time dep. Mc parameter. The resultant 2D PDF for p vs a which uses constant Mc for Sequence is shown below.

Parameter PDF with Constant Mc

Finally, set the Forecast Start Time (Days) and likewise for the end time, click Compute below these settings, and go to the Forecast tab to see the results. If you want to see the numbers, click the Show Data option below the plot.

The app does not yet check things like whether you have enough data to do the calculation, so infinite or NaN values might pop up and possibly crash the app. It seems particularly flakey with respect to parameter ranges for the grid search, as certain combinations can lead to numerical problems.

It’s a start however, and with your help we can hopefully make it more bullet proof and useful. All these problems will need to be ironed out in the operational code as well, so this GUI should help with that. We could also batch process many events at once (outside the GUI) in order to check or update generic parameters.

Things to add later include:

1) time-dependent Mc model (we need parameter values). Initial implementation done, needs further validation.

2) inclusion of generic parameters according to the Garcia, FE, or special regions (someone needs to give us those as well), and combined generic and sequence-specific forecasts. Initial implementation done.

3) obtaining finite-rupture surfaces from ComCat? (for collecting aftershocks)

4) better ways of setting Mag Precision?

As for the operational code, once we get the algorithms to Jeanne’s group’s liking, we then need to write the code that will listen to PDL and execute the calculations automatically as events occur (we know what this will take). We will also go through all the code line-by-line with the NEIC hazdev group to make sure it adheres to their standards with respect to testing and robustness.

Troubleshooting Java

If you don’t have java installed go to https://www.java.com and follow the instructions. If you get a message saying you can’t run the app for security reasons, open the Java control panel (listed as Java under System Preferences on OSX), click the Security tab, click “High” rather than “Very High”, and add http://opensha.usc.edu to the "Exception Site List" at the bottom. You may also need to go to the “Security and Privacy” option under System Preferences (OSX) and then select “Anywhere” under “Allow apps downloaded from:” (click the lock at the bottom of the window to be able to change this setting). If none of this works, please see your system admin, look here for info: https://www.java.com/en/download/help/, or ask Kevin and Ned.

Last modified 7 years ago Last modified on Mar 7, 2017, 6:07:16 PM

Attachments (6)

Download all attachments as: .zip