-
Notifications
You must be signed in to change notification settings - Fork 7
H7 Questions
- Show full scenario list
- Data source: WP - pulled from WP posts (name, magnitude, description etc.)
- Place scenario epicentre markers
- Data source: WP - coords pulled from posts to place markers
- Highlight item, show 'Explore' button (UX only)
- Display scenario boundary shape
- Data source: API - sample?
- Populate description/metadata for the selected scenario
- Data source: WP
- List of indicators
- Data source: List itself does not change per scenario - hardcoded?
- References for indicator lists:
- May need to revisit UX to account for 'sub-indicators' i.e. Building Damage slight/moderate/extensive/complete
- Load chart data for the default indicator (Shake map)
-
Data source: API -
opendrr_dsra_{scenario}_shakemap
-
Data source: API -
- Get shake map layer data
-
Data source: API - sample:
https://geo-api.stage.riskprofiler.ca/collections/[scenario]/items?[params]
-
Data source: API - sample:
- Expand accordion and load new chart data
- Data source: API - sample?
- Load new layer
-
Data source: API - sample:
https://geo-api.stage.riskprofiler.ca/collections/[scenario]/items?[params]
-
Data source: API - sample:
- Update chart(s)
-
Data source: use same API call, swap
_b0
(baseline) with_r1
(retrofit) - sample?
-
Data source: use same API call, swap
- Update data layer
-
Data source: use same API call, swap
_b0
(baseline) with_r1
(retrofit) - sample?
-
Data source: use same API call, swap
- Update available indicators?
- Update shape aggregation?
- Do we need to enable/disable the Retrofit toggle based on indicator, or is it just the shake map where it's not applicable?
For both deterministic (scenarios) and probabilistic pages, the list of indicators that should be provided on RiskProfiler is here and the description of data available to pull through the APIs is here.
1. How do we get the markers?
From the API's: https://api.stage.riskprofiler.ca and/or https://geo-api.stage.riskprofiler.ca
2. Where do we get the basic details of each scenario (description, magnitude, deaths, dollars, damaged buildings) ?
From https://opendrr.github.io/earthquake-scenarios/en/ and from the API's: https://api.stage.riskprofiler.ca and/or https://geo-api.stage.riskprofiler.ca
3. What are the indicators? Are they different for each scenario? How does the map change based on indicators etc.?
See: https://github.com/OpenDRR/earthquake-scenarios/releases/download/v1.0/dsra_attributes_en.xlsx
TH note: I think indicators is our word for what you're calling markers. Basically, they're the variables we are measuring/modelling. Number of deaths, for example, would be an indicator. The indicators themselves don't change between scenarios but the values of them do. The map changes somewhat because some variables are points in a grid and some are aggregated up to census geometry polygons. Also as the values change, the colors and legends will change, of course.
4. Where do we get the data to populate the charts?
From the API's: https://api.stage.riskprofiler.ca and/or https://geo-api.stage.riskprofiler.ca
5. How do we account for the retrofit on/off toggle?
TH note: Anything marked 'b0' is a 'baseline' measurement, meaning there has been no retrofit. Anything marked 'r1' is a retrofitted measurement. Therefore the retrofit on/off toggle should swap between the same set of indicators for b0 and r1. For example, if a user is looking at a map of the number of red-tagged buildings (completely damaged buildings) they will default to the baseline view (sDt_Complete_b0) but be able to toggle to the same map for a retrofitted scenario (sDt_Complete_r1).
-
What are the different indicators and where does their data come from to populate the chloropleths?
TH note: Data comes from same place (api's referenced above), and the description/list of required indicators are the same (Layer Guide and Sep 22 meeting) -- but for the 'probabilistic' risks or 'PSRA'. Note that the scenarios are also risks, but they're referred to as 'deterministic' or 'DSRA'.
-
Where does the data come from to rank every shape on the map?
TH note: Phil LeSueur is working on adding a couple new indicators to address this part. Rather than ranking them directly by 500 year loss we're going to give them a risk index score and then put them in percentile bins. So, for example, city X might be in the top 2% of riskiest cities in Canada for earthquakes. <-- subject to less awkward wording.
-
Where do we get the data for the probability charts on the shape detail screen?
TH note: Can you link to exactly which probability charts? It'll still be those same probabilistic indicators we've already mentioned, but I'm guessing you're needing help translating between the descriptions in the wireframes and the exact indicators you can pull using API. For this you can use the Layer Guide and Sep 22 meeting notes.
Wikis: data | model-factory | opendrr-api | opendrr | python-env | riskprofiler-cms