openquake.hme.model_test_frameworks.gem.gem_test_functionsΒΆ
Utility functions for running tests in the GEM model test framework.
Functions
|
Compares observed ground motions from a flatfile with model predictions. |
|
Computes the total seismic moment per spatial cell and overall from an earthquake catalog. |
|
Returns the rupture closest to the given earthquake in 3D distance. |
|
Calculates 3D distances between an earthquake and a set of ruptures. |
|
Returns all flatfile records for a given earthquake event ID. |
|
Finds and ranks modeled ruptures that match an observed earthquake. |
|
Calculates total seismic moment from an MFD dictionary. |
|
Finds ruptures in the earthquake's H3 cell and its immediate neighbors. |
|
Filters ruptures to those within a magnitude window of the earthquake. |
|
Computes the expected seismic moment per spatial cell and total, given rupture occurrence rates scaled by duration. |
|
Calculates a linear likelihood based on the magnitude difference between an earthquake and candidate ruptures. |
|
Matches all earthquakes in a catalog to their best-matching modeled ruptures using |
|
Computes and compares model and observed magnitude-frequency distributions. |
|
Compares observed seismic moment release to stochastic moment release from the model, per cell and in total. |
|
Predicts ground motions at recording sites for a given earthquake using the ground motion models from the logic tree, and compares with observed values from the flatfile. |
|
Runs the rupture matching evaluation, matching all observed earthquakes to modeled ruptures and collecting matched/unmatched results. |