Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc_src/source/example_configs/reference_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ config:
# Catalog Ground Motion Evaluation
# Compares observed ground motions from a flatfile with model predictions.
# Requires a flatfile to be specified under input.
catalog_ground_motion_eval:
gmc_eval:
match_rups: False # [optional] Match ruptures to earthquakes
# before ground motion comparison
# gmf_method: ground_motion_fields # [optional] Method for ground
Expand Down Expand Up @@ -266,7 +266,7 @@ input:

# -------------------------------------------------------------------------
# Flatfile for ground motion evaluation [optional]
# Required for catalog_ground_motion_eval test.
# Required for gmc_eval test.
# -------------------------------------------------------------------------
flatfile: path/to/flatfile.csv

Expand Down
39 changes: 23 additions & 16 deletions doc_src/source/model_test_frameworks/gem_tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -272,25 +272,32 @@ Takes no configuration parameters (use ``{}``).

.. _gem-catalog-ground-motion-eval:

Catalog Ground Motion Evaluation (``catalog_ground_motion_eval``)
Ground-Motion Characterisation Evaluation (``gmc_eval``)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Compares observed ground motions from a flatfile with model predictions. This
requires a flatfile to be specified under ``input.flatfile`` in the
configuration.
Compares observed ground motions from a flatfile with predictions from the
ground-motion models (GMMs) in the GSIM logic tree. Each earthquake in the
flatfile is assigned to a tectonic region type (TRT) using the matched rupture
(i.e., one that is above a statistical threshold) or as a fallback the nearest
rupture instead. Then, residuals are computed for each TRT using the corresponding
GMMs, the OQ rupture, and the station information and record metadata in teh flatfile.

Residual plots (histograms, magnitude/distance/Vs30 trends, and a summary period
plot) are saved as PNGs and embedded in the HTML report.

Requires a flatfile to be specified under ``input.flatfile`` and a ``gmmLT.xml``
file to be present in the ``ssm_dir``.

Parameters:

``match_rups``
Optional. If ``True``, match earthquakes to model ruptures before computing
ground motion comparisons; if ``False``, then new ruptures are generated
based on the earthquake information in the flatfile. If ruptures are
matched, it provides a better understanding of whether the model is
reproducing the ground motions from specific earthquakes, and the
confidence with which an earthquake is assigned to a tectonic region type
is much higher (as the best-matching rupture will already have one
defined). Default: ``False``.

``gmf_method``
Optional. Method for ground motion calculation. Default:
``"ground_motion_fields"``.
Optional. If ``True``, match earthquakes to model ruptures before assigning
TRTs; matched ruptures provide higher confidence in TRT assignment.
If ``False`` (default), all earthquakes are treated as unmatched and each
is assigned the TRT of the closest model rupture. Default: ``False``.

``output_dir``
Optional. Directory where per-TRT residual plot PNGs are saved. Each TRT
gets a subdirectory with per-GMM subfolders. Default:
``"gm_residual_plots"``.

2 changes: 1 addition & 1 deletion doc_src/source/yaml_config_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ Flatfile (``flatfile``)
-----------------------

Path to a ground motion flatfile (CSV). Required for the
``catalog_ground_motion_eval`` evaluation. Specified at the ``input`` level.
``gmc_eval`` evaluation. Specified at the ``input`` level.

.. code-block:: yaml
Expand Down
2 changes: 1 addition & 1 deletion openquake/hme/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def load_ruptures_from_file(cfg: dict):


def needs_gsim_lt(cfg: dict):
gsim_test_list = ["catalog_ground_motion_eval"]
gsim_test_list = ["gmc_eval"]

needs_gsim = False
if "gem" in cfg["config"]["model_framework"]:
Expand Down
Loading
Loading