Closed al-maisan closed 11 years ago
Hmm .. apparently all the PSHA input parsers are implemented in Java.
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
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