Allow definition of spatially variable site parameters in OpenQuake
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake (deprecated) |
Fix Released
|
High
|
Lars Butler |
Bug Description
[et=20h]
[at=45.5h]
Currently, in the OpenQuake configuration file, site parameters:
REFERENCE_
VS30_TYPE = measured
DEPTHTO1PT0KMPERSEC = 100.0
REFERENCE_
are defined and applied to all the sites considered in the calculation (see https:/
For all calculators, we need to give the possibility to compute hazard results on a set of sites having spatially variable site parameters.
The site parameter spatial distribution can be defined in a .csv file containing site coordinates and corresponding site parameters.
LON, LAT, VS30, VS30_TYPE, Z1Pt0,Z2Pt5
30.0,45.
....
For all the sites in the calculation (defined through REGION_VERTEX or SITES keys, or from the sites defined in the exposure file if the key COMPUTE_
Notes from Lars:
- The site parameter distribution model could be CSV (due to its simple nature), or it could be NRML to maintain consistency with our other inputs.
- This file could be specified as a SITE_MODEL parameter. In the config file, the param value would simply be a file path.
- The SITE_MODEL parameter would be optional. If it is not specified, the user can instead specify REFERENCE_
- Pre-calculation error checking: When the SITE_MODEL is read, generate a convex hull (polygon) from all of the points in the model. Then, make sure all calculation points of interest intersect with this polygon. If any points do not intersect, raise an error and abort the calculation.
- The SITE_MODEL should be stored in the database. This will allow us to do spatial queries with PostGIS.
- When we do a calculation on a given point/site of interest, do a spatial query to get the closest SITE_MODEL params. (We cannot assume that parameters will be available for _exactly_ the points of interest, so we just have to take the closest available data.)
Changed in openquake: | |
assignee: | nobody → Lars Butler (lars-butler) |
milestone: | none → 0.8.0 |
importance: | Undecided → High |
status: | New → Confirmed |
description: | updated |
description: | updated |
Changed in openquake: | |
status: | Confirmed → In Progress |
description: | updated |
Changed in openquake: | |
status: | In Progress → Fix Committed |
Changed in openquake: | |
status: | Fix Committed → Fix Released |
The site parameter spatial distribution should probably be stored in the database. Then, workers can do spatial queries to get the parameters relevant for the site list in each task.