Hazard+Risk calculations cannot be run on a list of sites
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake (deprecated) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
You can run a hazard+risk computation on a REGION_VERTEX, but not on a list of SITES.
The reason for this is, the classical risk calculator (for example) reads sites from the exposure input based on the 'region'... but the region is only set if REGION_VERTEX is specified.
There are 2 primary factors involved here:
1) The RiskMandatoryPa
2) The exposure model parser, which is based on the FileProducer class (https:/
For the first issue, I propose that we simply remove these contraints from the validators. Hazard+Risk calculations should be able to run on either a region or a list of sites (this is especially important for QA tests).
For the second issue, we need to refactor the exposure parser to support filtering on a list of sites (not just RegionConstraints).
Changed in openquake: | |
status: | New → Incomplete |
description: | updated |
Changed in openquake: | |
status: | Incomplete → Confirmed |
assignee: | nobody → Lars Butler (lars-butler) |
summary: |
- Classical Hazard+Risk calculations cannot be run on a list of sites + Hazard+Risk calculations cannot be run on a list of sites |
description: | updated |
summary: |
- Hazard+Risk calculations cannot be run on a list of sites + SDAC - Hazard+Risk calculations cannot be run on a list of sites |
Changed in openquake: | |
assignee: | Lars Butler (lars-butler) → nobody |
tags: | added: rsik techdebt |
tags: |
added: risk removed: rsik |
summary: |
- SDAC - Hazard+Risk calculations cannot be run on a list of sites + Hazard+Risk calculations cannot be run on a list of sites |
Changed in openquake: | |
status: | Fix Committed → Fix Released |
Lars, regardless the approach (computing the hazard in a grid or reading the sites from the exposure model), a user must always provide the coordinates of a polygon. Even if I'm using the location of the assets, I might want to consider only the assets within a certain region. An example could be, say I have the Switzerland exposure model, and I want to run calculations considering the location of each asset only within a polygon that defines the administrative limits of zurich.