New module: ARC to MariaDB SQL

43 views
Skip to first unread message

Victor Preatoni

unread,
Feb 6, 2024, 11:29:33 AM2/6/24
to Earthworm Community Forum
Hi all!

We have created a very simple new module called arc2mariadb. It just stores ARC messages into a MariaDB SQL database. It is not intended to replace MoleDB nor AQMS. Currently it will only compile under Linux.

Works as follows:
Listen for a TYPE_HYP2000 message, and writes it to a database. It will store:
event_id, origin time, position as a SQL Geometry Type, depth, magnitude, magType, # of phases, standard error, gap, dmin, error ellipse and erh/erz.

If later on, a TYPE_MAGNITUDE message arrives with same event_id, it will update the magnitude and magType field with the new ML calculation. Otherwise, it will just store the Md calculated by hyp2000.

It will also store the arrival phases associated to that event on a different table. Both tables are linked with the event_id field, so you can easily see event phases.


Example of visualization on a database tool like DBeaver (https://dbeaver.io/):
1.png

Example of phase arrivals associated to a single event:
2.png

You can also benefit from SQL geometry search:
3.png


If someone wants to give it a try, module source code is here: https://gitlab.com/oavv/arc2mariadb.git


I expect to submit to EW master brach soon.

Any suggestion feel free to contact me!.


Victor

Paul Friberg

unread,
Feb 8, 2024, 5:21:28 PM2/8/24
to earthwo...@googlegroups.com
Nicely done Victor. That looks like a handy tool for those using MariaDB to review the output of an Earthworm system doing locations. Thanks for sharing.

Paul

--
--
You received this message because you are subscribed to the Google
Groups "Earthworm Community Forum" group.
 
To post to this group, send an email to earthwo...@googlegroups.com
 
To unsubscribe from this group, send an email to
earthworm_for...@googlegroups.com
 
For more options, visit this group at
http://groups.google.com/group/earthworm_forum?hl=en

---
You received this message because you are subscribed to the Google Groups "Earthworm Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to earthworm_for...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/earthworm_forum/0dd9278e-f6c3-4039-9d09-abd0223e5cc4n%40googlegroups.com.


--
===================================
Paul Friberg   p.fr...@isti.com
CEO/Seismologist
ISTI==Instrumental Software Technologies, Inc.
Phone +1.518.602.0001  
Reply all
Reply to author
Forward
0 new messages