Class CodaSNREndTimePicker
java.lang.Object
gov.llnl.gnem.apps.coda.calibration.service.impl.processing.CodaSNREndTimePicker
- All Implemented Interfaces:
EndTimePicker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetEndTime(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.
-
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:
getEndTimein interfaceEndTimePicker- Parameters:
waveform- the waveformsampleRate- the sample ratestartTimeEpochSeconds- the start time in epoch seconds for the phase onsetstartOffset- 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 thresholdnoise- the estimated noise amplitude level- Returns:
- the estimated end time or the BAD_PICK value if no estimate can be made
-