Question on Customizing Distance and Time Windows in Declustering with HMTK

28 views
Skip to first unread message

Hazem Badreldin

unread,
Jun 14, 2025, 2:42:53 PM6/14/25
to openqua...@googlegroups.com

Dear all,

I am using the OpenQuake HMTK tools to perform declustering on an earthquake catalog. I would kindly like to ask how to set specific values for the distance and time windows used in the declustering process.

From what I understand, it is possible to manually define or override the default time and distance windows for each magnitude bin in the declustering classes such as GardnerKnopoffWindow, GruenthalWindow, or UhrhammerWindow.


"""""""""""

windows_classes = [GardnerKnopoffWindow(), GruenthalWindow(), UhrhammerWindow()]
window_names = ['Gardner-Knopoff', 'Gruenthal', 'Uhrhammer']

Cluster_iteration = []
N_poissonianos_event =[]
poissonianos_event =[]
df_declust = []
df_cluster = []


"""""""""""""""""""""""""""""""""""""""""""""""

Could you please confirm if this is correct, and let me know if there are recommended practices for setting these parameters?

Thank you in advance for your support.

Best regards,
Hazem Badreldin

Peter Pažák

unread,
Jul 14, 2025, 7:06:54 AM7/14/25
to OpenQuake Users
Hi, I believe the classes are quite simple (  oq-engine/openquake/hmtk/seismicity/declusterer/distance_time_windows.py at master · gem/oq-engine · GitHub )
The parameters are passed via config parameter, but if you require something very specific, you may need to implement a separate class yourself...

Peter

Dátum: sobota 14. júna 2025, čas: 20:42:53 UTC+2, odosielateľ: hazembad...@gmail.com
Reply all
Reply to author
Forward
0 new messages