Exporting outputs for individual logic tree realisations

67 views
Skip to first unread message

Andrew Hills

unread,
Jan 30, 2020, 8:49:04 PM1/30/20
to OpenQuake Users
Hello,

I am trying to export hazard curves and UHS for individual logic tree realisations (not just the default mean statistics). I understand this section in the manual:

By default, OpenQuake will export only the statistical results, i.e. mean curves and quantiles.
If the user requires the complete results for all realizations, there is a specific command for
that, ‘oq extract hazard/all‘.

I have two questions:
 - Does a specific line in the job.ini file need to be added to get individual curves?
 - I receive the following KeyError on the console:

Traceback (most recent call last):
  File "c:\program files\openquake engine\python3.6\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\program files\openquake engine\python3.6\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\OpenQuake Engine\python3.6\Scripts\oq.exe\__main__.py", line 7, in <module>
  File "c:\program files\openquake engine\python3.6\lib\site-packages\openquake\commands\__main__.py", line 54, in oq
    parser.callfunc()
  File "c:\program files\openquake engine\python3.6\lib\site-packages\openquake\baselib\sap.py", line 181, in callfunc
    return self.func(**vars(namespace))
  File "c:\program files\openquake engine\python3.6\lib\site-packages\openquake\baselib\sap.py", line 251, in main
    return func(**kw)
  File "c:\program files\openquake engine\python3.6\lib\site-packages\openquake\commands\extract.py", line 35, in extract
    obj = Extractor(calc_id).get(what)
  File "c:\program files\openquake engine\python3.6\lib\site-packages\openquake\calculators\extract.py", line 1255, in get
    aw = extract(self.dstore, what)
  File "c:\program files\openquake engine\python3.6\lib\site-packages\openquake\calculators\extract.py", line 175, in __call__
    data = self[k](dstore, v)
KeyError: 'hazard'



Thank you for your time.

Andrew

Michele Simionato

unread,
Jan 30, 2020, 10:33:46 PM1/30/20
to OpenQuake Users
Acc, the manual is outdated! I fixed it just now. Your the question is answered in the FAQ: https://github.com/gem/oq-engine/blob/master/doc/faq-hazard.md
Reply all
Reply to author
Forward
0 new messages