oq-engine icon indicating copy to clipboard operation
oq-engine copied to clipboard

Error when trying to create a geopackage for the JPN model.

Open mmpagani opened this issue 2 years ago • 2 comments

The last version of the JPN model contains some characteristicFaultSources whose ruptures are represented as griddedSurfaces. The error generated while creating this file is UnboundLocalError: node characteristicFaultSource: local variable 'geom' referenced before assignment. This happens since here https://github.com/gem/oq-engine/blob/master/openquake/hazardlib/sourceconverter.py#L1477 the case of a griddedSurface is not considered.

mmpagani avatar Feb 09 '23 04:02 mmpagani

Unfortunaly characteristicFaultSources are not supported by the converter since they highly nontrivial and they require some discussion with the scientific team (what do we want to store and how we want to store it, how many surface types we want to convert and how). I agree that the error message should be improved.

micheles avatar Feb 09 '23 06:02 micheles

Example file: char.xml.gz

$ oq nrml_to csv char.xml
NotImplementedError

micheles avatar Apr 23 '24 08:04 micheles