Skip to content

Process for adding new DSRA scenarios

Anthony Fok edited this page Jun 22, 2022 · 18 revisions

Note: Very early draft. This idea was first proposed as an OpenDRR administrative task during Sprint 59 on May 30, 2022, especially as we anticipate the DSRA catalogue to grow from 5 scenarios to 45 scenarios in the very near future.

Overview

  1. Design a new DSRA scenario

  2. Generate scenario Hazard, Damage, Consequence, and Risk outputs, and upload the resulting CSV and log files to the FINISHED/ directory in the OpenDRR/earthquake-scenarios repo

  3. Create/modify the necessary PostGIS SQL and Python scripts (in the OpenDRR/model-factory repo) to process

  4. Update pygeoapi config file

  5. "Stack build" at OpenDRR/opendrr-api which uses the aforementioned SQL and Python scripts etc. to process DSRA scenarios (and prerequisite data) to populate a PostGIS database

  6. Import to Elasticsearch

  7. Elasticdump

  8. Vector tiles generation using GeoServer (or Tippecanoe, ogr2ogr, etc.)

  9. Add the new DSRA scenarios to WordPress (by HabitatSeven initially)

  10. Deploy to AWS for RiskProfiler, Kibana dashboard, etc. (Arash)

Detailed Process

1. Design a new DSRA scenario

  1. Our Research Scientists and Earthquake Scenarios Analysts (e.g. Tiegan E. Hobbs and Jeremy Rimando) design new scenarios (by creating earthquake-scenarios/initializations/*.ini files

(usually by our Research Scientists and Earthquake Scenarios Analysts)

2. Generate scenario Hazard, Damage, Consequence, and Risk outputs

Generate scenario Hazard, Damage, Consequence, and Risk outputs using the Canadian datasets and functions produced by NRCan and partners.

This is done by running scripts/run_OQStandard.sh which calls OpenQuake v3.11 and other post-processing Python scripts (consequences? weighted average?) to complete calculations resulting in HDF5 DataStores (in oqdata) and CSV files (which are eventually uploaded (git push) to the earthquake-scenarios/FINISHED directory.

(usually by our Research Scientists and Earthquake Scenarios Analysts)

3. TODO

References