Import hazard curves in NRML format

Bug #1175452 reported by Michele Simionato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Natural hazards' Risk Markup Language (NRML)
Fix Committed
High
Michele Simionato

Bug Description

This is a two step project:

1. add a HazardCurveParser to nrmllib, which is able to convert a XML file into a text format suitable for import
2. add an importer in the engine/tools directory, similarly to what we did with import_gmf_scenario.py

TODO: ask Luigi about the weight
TODO: ask Vitor if we need to support multi-curves right now

Changed in oq-nrmllib:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Michele Simionato (michele-simionato)
milestone: none → 0.4
description: updated
Revision history for this message
matley (matley) wrote :

I would support multi-curves because it will allow us to use the importer to produce fixtures for risk tests. What's your thoughts?

Revision history for this message
Michele Simionato (michele-simionato) wrote :

For the goal of importing data in the unit tests, it is probably more convenient to read the data from a csv format, not XML. Anyway, I am favor of importing the multi-curves, only not now when we have issues with a much bigger priority.

Revision history for this message
Michele Simionato (michele-simionato) wrote :

Here are the associated pull requests:

step 1: https://github.com/gem/oq-nrmllib/pull/92
step 2: https://github.com/gem/oq-engine/pull/1165

Changed in oq-nrmllib:
status: In Progress → Fix Committed
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.