nhlib-based classical hazard calculator core, initialization

Bug #1016456 reported by Lars Butler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Won't Fix
Medium
Lars Butler

Bug Description

With the imminent completion of bug # 994033, we have the ability to load a classical hazard job profile from an INI file into the DB. Existing engine code was adapted (see engine.py/engine2.py) to prepare all of the input necessary for running a classical hazard job. Now, we need to start building the pre-execution steps for the classical calculator.

Here is a rough outline of the steps required to run a calculation, in order of execution:

------
Engine
------
(The following 3 parts already exist, for the most part. Additional 'glue' code may be required.)
- parse job (from config file)
- validate job
- store job profile in database (this includes create initial records for input files: logic trees, site model, etc.; additional processing will be required--see below)

----------------------
initialize/pre_execute
----------------------
- parse & store site model (the input model should already be partially stored in the database; see `uiapi.input` and `uiapi.model_content` db tables)
- parse source model logic tree, store sources (from xml to db), create `src2ltsrc` links
- initialize calc progress counters
- record job stats

-------
execute
-------
- if geometry of interest is a region, discretize it into sites (based on th `region_grid_spacing`)
  - we can probably use nhlib geometry code for this; see `nhlib.geo.Polygon.discretize` (https://github.com/gem/nhlib/blob/master/nhlib/geo/polygon.py#L178)
- distribute tasks and wait

------------
post_execute
------------
- clear progress counters

---------------
post_processing
---------------
- mean curves (if requested)
- quantile curves (if requested)
- hazard maps (if requested)

Tags: hazard nhlib
tags: added: nhlib
tags: added: hazard
Changed in openquake:
assignee: nobody → Lars Butler (lars-butler)
status: New → In Progress
importance: Undecided → Medium
milestone: none → 0.8.1
description: updated
summary: - nhlib-based classical hazard calculator core
+ nhlib-based classical hazard calculator core, initialization
description: updated
description: updated
Changed in openquake:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.