Skip to content
Switch branches/tags

Latest commit

…f energy calculations and a new data table filter feature

* Energy calculation feature is based on Mayeda, K., and Walter, W. R. (1996), with updates made for CCT
  * Converted the energy calculation algorithm to MKS units
  * Utilized a numerically derived term for the k constant, analytical form derivation in progress
  * Reformulated the p-Wave contribution from a constant of 7%, as in Mayeda, K., and Walter, W. R. (1996), to a derived formula using the MDAC paramaterization based on Walter and Taylor, 2001
* Implementation of energy calculation feature includes the addition of new data columns containing calculation results
* Added total energy calculation values to be displayed in the area directly above spectral plots
* Renamed plot FIT as Mw_coda
* Added a data filter feature that allows users to filter the results displayed in a data table by event id, station etc.
* Updated data tables to show a filter icon in the column headers, which will open the filter dialog
* Included auto-completion and search of filter terms within the filter dialog feature

Git stats


Failed to load latest commit information.

Livermore logo

The Coda Calibration Tool (CCT) is a Java based application for calibrating 1D shear wave coda measurement models to observed data using a much smaller set of reference MWs calculated from other means (waveform modeling, etc.).
These calibrated measurement models can then be used in other tools to generate coda MW measurements, source spectra, estimated stress, and other useful measurements against the rest of the events and any new data collected in the calibrated region.

The Coda Calibration Tool currently only does calibration; it requires data to be pre-processed for loading using other tools.



Data courtesy of Northern California Earthquake Data Center


CCT is split into three basic components.

A REST service that consumes Waveform objects containing stacked coda envelope segments and information about the station and event locations. This service does all the actual calculations to calibrate the model.

A JavaFX/HTML5/Swing GUI application that understands how to convert stack files (see Data) to Waveform objects, interact with the REST Calibration service, and display useful diagnostic plots with the resulting data.

And a wrapper project (Standalone) that combines both into a single runnable JAR file to allow end users to run the GUI and Service together the same way they would run any other desktop application.

CCT is based on Spring 5.0; primarily Boot and Data. By default, it uses a H2 in-memory database for storing loaded Waveforms and the resulting calibration artifacts.


CCT uses Apache Maven for building and dependency management.

From the top level coda-calibration directory you can build the entire project using the parent pom by running:

mvn clean package

We don't presently deploy versioned artifacts into a public repository like the Maven Central Repository but we may do so in the future.


As a single runnable JAR

java -jar coda-calibration/calibration-standalone/target/calibration-standalone-1.0.13-runnable.jar

GUI alone

java -jar coda-calibration/calibration-gui/target/calibration-gui-1.0.13-runnable.jar

Calibration REST service alone

java -jar coda-calibration/calibration-service/application/target/application-1.0.13-runnable.jar

A note about HTTPS

If you look at the REST service and the GUI client packages you might have noticed 'selfsigned.crt' and 'coda-truststore.jks' in the resources directory. CCT uses HTTPS by default and these are the default certificates we include for the handshake between the client and the GUI.

You can use these as-is or use your own by changing these properties using any of the Spring external configuration mechanisms:

  • On the client:
  • On the REST service:

This additional step is recommended for deployments where the REST service is bound to a non-loopback adapter.

Data Formats

As of 1.0, CCT is capable of loading four basic file types

  1. Stacked coda envelopes

    These stacked envelopes are filtered into the same frequency ranges as those defined in the coda model parameters (3). Presently, the CCT GUI only has converters for SAC files and, as a result, requires the file names to follow a specific format to capture the frequency band information.

    (e.g. ANMO_STACK_999999_1.0_1.5_VEL_.env)
  2. Reference events

    A simple space delimited text file of format:

    (e.g. 999999 5.1 0.0)

    The EVID here should match the one defined in either the KEVNM or NEVID (tested in that order) fields of the SAC files being loaded so the envelope waveforms can be associated correctly during calibration.

  3. Coda model parameters

    This defines the frequency bands and some corresponding frequency dependent parameters to be used during calibration. ​

  4. Phase and frequency model parameters for distance amplitude correction curves


    While CCT supports loading MDAC2 model descriptor files, it presently only uses it for predicted source spectra. As a result, the two parameters of most interest for calibration purposes are Psi and Sigma. These correspond to apparent or actual stress drop of the spectra depending on their values. See the additional reading for more information.


Contributing to CCT is easy: just send us a pull request.

When you send your request, make develop the destination branch.

The develop branch contains the latest contributions, and master always points to the latest stable.

Issues, suggestions, discussion, documentation, general code cleanup, and automated tests are also all valuable ways to contribute and are more than welcome!

Additional Reading

Mayeda, K.M., A. Hofstetter, J.L. O Boyle, W.R. Walter (2003). Stable and transportable regional magnitudes based on coda-derived moment-rate spectra, Bull. Seism. Soc. Am., 93, 224-239.


We use Semantic Versioning for versioning. For the versions available, see the tags on this repository.


The Coda Calibration Tool is provided under the Apache License.

 Copyright 2017 Lawrence Livermore National Laboratory

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   See the License for the specific language governing permissions and
   limitations under the License.


  This work was performed under the auspices of the U.S. Department of Energy 
  by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344.