scomerger is a seiscomp3 application which aims to merge several origins
belonging to the same event from differents agencys and authors. A new origin
is created with arrivals of all origins and then a relocation (LocSAT with
iaspei91 profile by default) is done.
scomerger works like this:
-
it listens to
EVENTmessages fromscevent, -
when an
EVENTmessage is received :- if a merged origin exists without new origin, nothing is done.
- if a merged origin exists but a newer origin exists,
scomergersend a message tosceventto remove this merged origin.sceventselects then a new preferred origin and sends a newEVENTmessage (which will be received and processed byscomerger). - If no merged origin is present, select all the origins that match the
input agencys, authors and evaluation mode. Only the newest origin is
kept for a given agency. So,
scomergermerges these origins and a new origin is created with all arrivals and relocated (LOCSATby default). scomergersend a message tosceventandscmagto create the new origin in the database and update magnitude. Anoriginreferenceis created as well to associate the origin to the event.sceventselects also a new preferred origin.
Note
The merged origin is detected with
author(scomerger by default) andagencyIDfields.
scomergercan send the messages to 2 differentsscevent. The actions of removing merged origins and merging can indeed be separated (parametersscomerger/connection/groupRemoveandglobal/connection/primaryGroup).Every modifications of the database must be done by
scevent. That's whyscomergersend messages to it.
-
Synchronise the source into seiscomp3 folder:
rsync -av seiscomp3/ /path/to/seiscomp3/
-
Configure
scomerger -
Activate the seiscomp3 module:
seiscomp enable scomerger
seiscomp start scomerger ```
scomerger can be run on a particular event with the -E or --event option:
seiscomp exec scomerger -E eost2016ehixIt can be run on a period of time as well:
seiscomp exec scomerger --begin 2016-03-01T00:00:00.0 --end 2016-03-08T00:00:00.0It is also possible to remove the merged origins with the -R option:
seiscomp exec scomerger -E eost2016ehix -R