Weighting input variables by seismic source

17 views
Skip to first unread message

jiha...@gmail.com

unread,
Sep 18, 2025, 3:58:03 AM (5 days ago) Sep 18
to OpenQuake Users
Hello,

I am a PhD student currently working on generating hazard maps using OpenQuake.
In defining the seismic sources, I would like to assign different weights to the a and b values, as well as to the minimum and maximum magnitudes, as shown below(source_model.xml):

<truncGutenbergRichterMFD aValue="5.5000000E+00" bValue="0.5000000E+00" probability="0.5000000E+00"/>
<truncGutenbergRichterMFD aValue="4.5000000E+00" bValue="0.5000000E+00" probability="0.5000000E+00"/>
<truncGutenbergRichterMFD maxMag="7.0000000E+00" minMag="5.0000000E+00" probability="0.5000000E+00"/>
<truncGutenbergRichterMFD maxMag="8.0000000E+00" minMag="5.0000000E+00" probability="0.5000000E+00"/>

  However, when I attempt this, I encounter the following error:

ValueError: node areaSource: too many values to unpack (expected 1), line 13 of C:\Users\Public\Documents\ESTsoft\CreatorTemp\tmpp9mmbgqx\calc_1507\source_model1.xml


Is there a way to assign weights to each of these variables separately?

Thank you very much for your help.
  

Marco Pagani

unread,
Sep 18, 2025, 11:56:18 AM (5 days ago) Sep 18
to OpenQuake Users

The epistemic uncertainties must be specified in the two .xml files. Please read the OQ documentation carefully (https://docs.openquake.org/oq-engine/manual/latest)

The uncertainties in your example can be modelled as described here:
https://github.com/gem/oq-engine/blob/master/openquake/qa_tests_data/logictree/case_36/source_model_logic_tree.xml


--
You received this message because you are subscribed to the Google Groups "OpenQuake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/openquake-users/8435b11c-6097-4464-9d1b-7de05c2beed9n%40googlegroups.com.
Message has been deleted

jiha...@gmail.com

unread,
4:04 AM (10 hours ago) 4:04 AM
to OpenQuake Users
Thank you so much, Marco, for your clear and helpful answer to my OpenQuake question.

Your support made it much easier for me to move forward—thanks again!

2025년 9월 19일 금요일 오전 12시 56분 18초 UTC+9에 marco....@globalquakemodel.org님이 작성:
Reply all
Reply to author
Forward
0 new messages