This plugin provides a custom magnitude calculation for SeisComP, known as Class (or "Klass"), which is traditionally used in seismological practice in several countries.
This plugin is provided "as is" and is the result of an ongoing development and learning effort. It may contain bugs, errors, or inaccuracies.
No warranty of any kind is provided, express or implied. The user assumes all responsibility and risk for the use of this software. Thorough testing is strongly advised before deploying it in a production environment.
The development of this plugin was heavily inspired by and adapted from the MagnitudeProcessor_ML (MLh) plugin, originally developed by the Swiss Seismological Service (ETHZ/SED).
Significant portions of the class structure, configuration file handling, and processing logic are based on their work. The original authors are gratefully acknowledged for providing a robust and clear foundation that made this implementation possible.
This plugin has a known incompatibility between SeisComP API versions.
-
SeisComP 6.X: The
setDefaults()virtual function does not exist in theProcessing::MagnitudeProcessorbase class. To compile this plugin for SeisComP 6, you must delete or comment out the entiresetDefaults()function in theMagnitudeProcessor_K_Classclass. -
SeisComP 7.X: The
setDefaults()function is part of the API and should be included.
The plugin will fail to compile on SeisComP 6 if the setDefaults() function is present.
K_Class amplitude calculation uses a wavelet (Mexican hat) transform for the peak P wave amplitude search and the maximum value of an S wave at any horizontal component. Since the wavelet is used only for P wave detection at the vertical component, its scale can be configured via the plugin configuration.
The K_class plugin calculates the individual station magnitude by the formula obtained from (G.K. Aslanov et al., 2015):
Where
-
$A_p$ and$A_s$ are the amplitudes of the P and S waves, respectively. -
$V$ is the gain of the instrument. -
hypdistkmis the distance from the sensor to the hypocenter in kilometers.
- Distance range: 0 - 15 deg
- Depth range: 0 - 180 km
- Add the
K_Classplugin to the existing plugins in the global configuration or your station profile. - Set configurable parameters in the global bindings to compute K_class.