scmagcopy¶
Copies magnitudes to new origins referenced by events.
Description¶
scmagcopy is a SeisComP module which copies a Magnitude of a specific type, e.g., M(USGS), to an Origin that has been associated to an Event.
Processing steps performed:
Listen for new origins associated to an event (OriginReference).
Check if the referenced origin already contains a magnitude of the configured type and stop here if this is the case.
Iterate through all origins and magnitudes of the corresponding event.
Copy the latest magnitude of the configured type to the origin referenced by the new origin reference just received.
Send the magnitude copy to the messaging system.
Let scevent decide whether the new magnitude becomes preferred.
Module Configuration¶
etc/defaults/global.cfgetc/defaults/scmagcopy.cfgetc/global.cfgetc/scmagcopy.cfg~/.seiscomp/global.cfg~/.seiscomp/scmagcopy.cfgscmagcopy inherits global options.
- magType¶
Default:
M(USGS)Type: string
Magnitude type to copy if present.
Command-Line Options¶
scmagcopy [OPTIONS]
Generic¶
- -h, --help¶
Show help message.
- -V, --version¶
Show version information.
- --config-file file¶
The alternative module configuration file. When this option is used, the module configuration is only read from the given file and no other configuration stage is considered. Therefore, all configuration including the definition of plugins must be contained in that file or given along with other command-line options such as --plugins.
- --plugins arg¶
Load given plugins.
- -D, --daemon¶
Run as daemon. This means the application will fork itself and doesn’t need to be started with &.
Verbosity¶
- --verbosity arg¶
Verbosity level [0..4]. 0:quiet, 1:error, 2:warning, 3:info, 4:debug.
- -v, --v¶
Increase verbosity level (may be repeated, e.g., -vv).
- -q, --quiet¶
Quiet mode: no logging output.
- --print-component arg¶
For each log entry print the component right after the log level. By default the component output is enabled for file output but disabled for console output.
- --component arg¶
Limit the logging to a certain component. This option can be given more than once.
- -s, --syslog¶
Use syslog logging backend. The output usually goes to /var/lib/messages.
- -l, --lockfile arg¶
Path to lock file.
- --console arg¶
Send log output to stdout.
- --debug¶
Execute in debug mode. Equivalent to --verbosity=4 --console=1 .
- --trace¶
Execute in trace mode. Equivalent to --verbosity=4 --console=1 --print-component=1 --print-context=1 .
- --log-file arg¶
Use alternative log file.
Messaging¶
- -u, --user arg¶
Overrides configuration parameter
connection.username.
- -H, --host arg¶
Overrides configuration parameter
connection.server.
- -t, --timeout arg¶
Overrides configuration parameter
connection.timeout.
- -g, --primary-group arg¶
Overrides configuration parameter
connection.primaryGroup.
- -S, --subscribe-group arg¶
A group to subscribe to. This option can be given more than once.
- --start-stop-msg arg¶
Default:
0Set sending of a start and a stop message.
Database¶
- --db-driver-list¶
List all supported database drivers.
- -d, --database arg¶
The database connection string, format: service://user:pwd@host/database. "service" is the name of the database driver which can be queried with "--db-driver-list".
- --config-module arg¶
The config module to use.
- --inventory-db arg¶
Load the inventory from the given database or file, format: [service://]location .
- --db-disable¶
Do not use the database at all.
Processing¶
- --mag-type arg¶
Default:
M(USGS)Type: string
Magnitude type to copy if present.