gem / oq-engine

OpenQuake Engine: a software for Seismic Hazard and Risk Analysis
https://github.com/gem/oq-engine/#openquake-engine
GNU Affero General Public License v3.0
377 stars 273 forks source link

PSHA input database loader (from NRML files) #151

Closed al-maisan closed 11 years ago

al-maisan commented 13 years ago

In oder to populate the PSHA input schema/namespace in the OpenQuake PostGIS database we need a loader utility that reads PSHA input model files (in NRML format) and writes their content to the database.

Potential solution

Use the various XML/NRML reader Python classes in existence, implement a new SQL/database writer/serializer.

https://www.pivotaltracker.com/story/show/12546279

al-maisan commented 13 years ago

Hmm .. apparently all the PSHA input parsers are implemented in Java.

monellid commented 13 years ago

Yes all the PSHA input parsers are in Java. This is not so bad because we can then use very easily some opensha functions that allows to compute some 'extra' parameters that are not contained in the PSHA input file but that can be very useful to be plotted, like the fault surface and the total cumulative rate and total moment rate. We can always write a python script that through JPype calls the java parser, then extract the information from the Java object and pass to the DB