java.lang.Object
gov.llnl.gnem.apps.coda.calibration.service.impl.processing.CodaSNREndTimePicker
All Implemented Interfaces:
EndTimePicker

@Component public class CodaSNREndTimePicker extends Object implements EndTimePicker
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getEndTime(float[] waveform, double sampleRate, double startTimeEpochSeconds, int startOffset, double minLengthSec, double maxLengthSec, double minimumSnr, double noise)
    Attempts to estimate a coda-end time for a given waveform.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CodaSNREndTimePicker

      public CodaSNREndTimePicker()
  • Method Details

    • getEndTime

      public double getEndTime(float[] waveform, double sampleRate, double startTimeEpochSeconds, int startOffset, double minLengthSec, double maxLengthSec, double minimumSnr, double noise)
      Attempts to estimate a coda-end time for a given waveform. Has rudimentary support for spike detection and coda-slope deviations from what the physics expects to try and identify aftershocks, artifacts, or other interfering events. Generally works well between 1 and 25hz for most regions of the world but is not particularly good below 1hz.
      Specified by:
      getEndTime in interface EndTimePicker
      Parameters:
      waveform - the waveform
      sampleRate - the sample rate
      startTimeEpochSeconds - the start time in epoch seconds for the phase onset
      startOffset - the start offset indicates where the picker should start assessment (e.g. phase onset)
      minLengthSec - the minimum coda length (sec)
      maxLengthSec - the maximum coda length (sec)
      minimumSnr - the minimum SNR threshold
      noise - the estimated noise amplitude level
      Returns:
      the estimated end time or the BAD_PICK value if no estimate can be made