HMTK

1,240 views
Skip to first unread message

Nima Dolatabadi

unread,
Aug 16, 2019, 7:03:46 AM8/16/19
to OpenQuake Users
Hi
Is there any example or training room for using HMTK? like declustering, Mmax, b-value, a-value and Mc calculation?
I've seen the codes in oq-engine-openquake-hmtk-seismicity. even the HMTK tutorial. but it's no good. I ran into many errors and there was no where to debug the errors.

though is there any proper way to install HMTK? I ran into many problems installing it though at least I was able to install it the hard way. I just copied contents of oq-engineopenquake-hmtk into the corresponding directories so it worked somehow (but it must have a better way).

If there is any training package or examples of HMTK, I would really appreciate your help.
Regards

Michele Simionato

unread,
Aug 19, 2019, 8:16:09 AM8/19/19
to OpenQuake Users
There is no need to install the HMTK. Once you install the engine, the HMTK is installed, since it is part of it.  Of course you must work in a proper virtual environment. If you are going to develop with the HMTK you need a developer installation and not a package installation, see https://github.com/gem/oq-engine/blob/master/doc/installing/development.md. You will have to install Jupyter and the other packages you use in the same virtual environment as the engine.

                  Michele

Message has been deleted

Graeme Weatherill

unread,
Aug 21, 2019, 1:15:11 PM8/21/19
to openqua...@googlegroups.com
Dear Nima,

I'm attaching pdf documentation for the hmtk to see if that can help. This was written back in 2014 before the hmtk was integrated into  OpenQuake itself, so to run now you will need to change the imports from "import htmk. ..." to from "openquake.hmtk. ...". Otherwise there have not been so many changes in how the functions themselves work, so it should still be helpful.

Regarding installation, as I said the hmtk is now packaged with OpenQuake, so if you install OpenQuake via the instructions here (https://github.com/gem/oq-engine#installation) then you should be good to go. If you want to make changes to the code (or maybe fix bugs if you find them, then you will need to install OpenQuake from source (only possible on Mac/Linux)).

Hope that helps.

Thanks,

Graeme
--
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 on the web visit https://groups.google.com/d/msgid/openquake-users/ad8e0e64-0e58-4c6d-b4df-1d5ca6c283de%40googlegroups.com.


hmtk_tutorial.pdf

Stoyan Andreev

unread,
May 11, 2020, 10:29:00 AM5/11/20
to OpenQuake Users
Hi Graeme,

Is there any more recent version of the HMTK manual or the one that you attached previously is still valid?

Best,
Stoyan Andreev
To unsubscribe from this group and stop receiving emails from it, send an email to openqua...@googlegroups.com.

Graeme Weatherill

unread,
May 11, 2020, 11:09:07 AM5/11/20
to openqua...@googlegroups.com
Hi Stoyan,

The email on this topic that I sent last year is still valid. There has been no update to the hmtk manual since then (or at least none by me). However, in the very latest version(s) of the engine there are some hmtk dependencies being removed from the OpenQuake package out of necessity (e.g. Basemap, Yaml), so some features such as the mapping functions will likely not work from the latest version onward.

I hope that helps.
Thanks,
Graeme
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/c8276c25-c8d8-4ab3-9af1-7ef5c8a5f089%40googlegroups.com.


Stoyan Andreev

unread,
Jun 17, 2020, 5:16:06 AM6/17/20
to OpenQuake Users
Hi Graeme, 

Thank you for clarifying this. Are the inputs that you use for the examples in the HMTK manual (eg earthquake catalogue) publicly available for download?

Best,
Stoyan

geremew lamessa

unread,
Jun 17, 2020, 5:48:25 AM6/17/20
to openqua...@googlegroups.com
 I think it is better to work with ZMap matlab script than openquake for declustering b-value map, Mc mappin etc
With regards!

Geremew Lamessa(PhD)
Assistance professor of Geology and Geophysics
Wollega University
College of Natural  and Computational Sciences
Department of Earth Sciences, Ethiopia


To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/24a6c8af-d9f1-44d9-b240-c73c5216b985o%40googlegroups.com.

Bharti Banshiwal

unread,
Jan 13, 2026, 1:07:45 AMJan 13
to OpenQuake Users
Hi Geremew
Thanks for the suggestion.
I explored zmap and could find only LS fit method for b val calculation. Is there any tool which gives b and Mmax from maximum likelihood method as well? i know OQ can do it but found it very difficult to use the HMTK modules.
Thanks
-Bharti
Reply all
Reply to author
Forward
0 new messages