Class PhaseSignalToNoise

java.lang.Object
edu.sc.seis.sod.process.waveform.PhaseSignalToNoise
All Implemented Interfaces:
WaveformProcess, SodElement, Subsetter, Threadable
Direct Known Subclasses:
CompoundPhaseSignalToNoise

public class PhaseSignalToNoise
extends java.lang.Object
implements WaveformProcess, Threadable
Calculates triggers, via LongShortSignalToNoise, and checks to see if a trigger exists within +- the time interval for the given phase name. Uses the first phase returned, ignoring later phases, such as triplications. The first trigger within the time window of the phase, if there is one, is added to the cookieJar with key "sod_phaseStoN_"+phaseName for use by later subsetters or later velocity output.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.time.Duration longOffsetBegin  
    protected java.time.Duration longOffsetEnd  
    protected java.lang.String modelName  
    static java.lang.String PHASE_STON_PREFIX  
    protected java.lang.String phaseName  
    protected edu.sc.seis.sod.bag.SimplePhaseStoN phaseStoN  
    protected float ratio  
    protected java.time.Duration shortOffsetBegin  
    protected java.time.Duration shortOffsetEnd  
    protected edu.sc.seis.sod.bag.TauPUtil taupUtil  
    protected java.time.Duration triggerWindow  
  • Constructor Summary

    Constructors 
    Constructor Description
    PhaseSignalToNoise​(org.w3c.dom.Element config)  
  • Method Summary

    Modifier and Type Method Description
    WaveformResult accept​(edu.sc.seis.sod.model.event.CacheEvent event, edu.sc.seis.seisFile.fdsnws.stationxml.Channel channel, edu.sc.seis.sod.model.seismogram.RequestFilter[] original, edu.sc.seis.sod.model.seismogram.RequestFilter[] available, edu.sc.seis.sod.model.seismogram.LocalSeismogramImpl[] seismograms, MeasurementStorage cookieJar)
    Processes localSeismograms, possibly modifying them.
    edu.sc.seis.sod.bag.LongShortTrigger calcTrigger​(edu.sc.seis.sod.model.event.CacheEvent event, edu.sc.seis.seisFile.fdsnws.stationxml.Channel channel, edu.sc.seis.sod.model.seismogram.LocalSeismogramImpl[] seismograms)
    This method exists to make the trigger available to other subsetters or processors so they don't have to call accept, which adds it to the cookieJar.
    java.lang.String getCookieName()  
    java.lang.String getPhaseName()  
    boolean isThreadSafe()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • isThreadSafe

      public boolean isThreadSafe()
      Specified by:
      isThreadSafe in interface Threadable
    • accept

      public WaveformResult accept​(edu.sc.seis.sod.model.event.CacheEvent event, edu.sc.seis.seisFile.fdsnws.stationxml.Channel channel, edu.sc.seis.sod.model.seismogram.RequestFilter[] original, edu.sc.seis.sod.model.seismogram.RequestFilter[] available, edu.sc.seis.sod.model.seismogram.LocalSeismogramImpl[] seismograms, MeasurementStorage cookieJar) throws java.lang.Exception
      Description copied from interface: WaveformProcess
      Processes localSeismograms, possibly modifying them.
      Specified by:
      accept in interface WaveformProcess
      Throws:
      java.lang.Exception
    • calcTrigger

      public edu.sc.seis.sod.bag.LongShortTrigger calcTrigger​(edu.sc.seis.sod.model.event.CacheEvent event, edu.sc.seis.seisFile.fdsnws.stationxml.Channel channel, edu.sc.seis.sod.model.seismogram.LocalSeismogramImpl[] seismograms) throws edu.sc.seis.sod.model.event.NoPreferredOrigin, edu.sc.seis.sod.model.common.FissuresException, edu.sc.seis.sod.bag.PhaseNonExistent, edu.sc.seis.TauP.TauModelException
      This method exists to make the trigger available to other subsetters or processors so they don't have to call accept, which adds it to the cookieJar.
      Throws:
      edu.sc.seis.sod.model.event.NoPreferredOrigin
      edu.sc.seis.sod.model.common.FissuresException
      edu.sc.seis.sod.bag.PhaseNonExistent
      edu.sc.seis.TauP.TauModelException
    • getCookieName

      public java.lang.String getCookieName()
    • getPhaseName

      public java.lang.String getPhaseName()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object