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 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 edu.iris.Fissures.model.TimeInterval
     
    protected edu.iris.Fissures.model.TimeInterval
     
    protected String
     
    static final String
     
    protected String
     
    protected edu.sc.seis.fissuresUtil.bag.SimplePhaseStoN
     
    protected float
     
    protected edu.iris.Fissures.model.TimeInterval
     
    protected edu.iris.Fissures.model.TimeInterval
     
    protected edu.sc.seis.fissuresUtil.bag.TauPUtil
     
    protected edu.iris.Fissures.model.TimeInterval
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    accept(edu.sc.seis.fissuresUtil.cache.CacheEvent event, edu.iris.Fissures.network.ChannelImpl channel, edu.iris.Fissures.IfSeismogramDC.RequestFilter[] original, edu.iris.Fissures.IfSeismogramDC.RequestFilter[] available, edu.iris.Fissures.seismogramDC.LocalSeismogramImpl[] seismograms, CookieJar cookieJar)
    Processes localSeismograms, possibly modifying them.
    edu.sc.seis.fissuresUtil.bag.LongShortTrigger
    calcTrigger(edu.iris.Fissures.IfEvent.EventAccessOperations event, edu.iris.Fissures.IfNetwork.Channel channel, edu.iris.Fissures.seismogramDC.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.
     
     
    boolean
     
     

    Methods inherited from class java.lang.Object

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

    • PHASE_STON_PREFIX

      public static final String PHASE_STON_PREFIX
      See Also:
    • phaseStoN

      protected edu.sc.seis.fissuresUtil.bag.SimplePhaseStoN phaseStoN
    • ratio

      protected float ratio
    • phaseName

      protected String phaseName
    • shortOffsetBegin

      protected edu.iris.Fissures.model.TimeInterval shortOffsetBegin
    • shortOffsetEnd

      protected edu.iris.Fissures.model.TimeInterval shortOffsetEnd
    • longOffsetBegin

      protected edu.iris.Fissures.model.TimeInterval longOffsetBegin
    • longOffsetEnd

      protected edu.iris.Fissures.model.TimeInterval longOffsetEnd
    • modelName

      protected String modelName
    • triggerWindow

      protected edu.iris.Fissures.model.TimeInterval triggerWindow
    • taupUtil

      protected edu.sc.seis.fissuresUtil.bag.TauPUtil taupUtil
  • Constructor Details

  • Method Details

    • isThreadSafe

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

      public WaveformResult accept(edu.sc.seis.fissuresUtil.cache.CacheEvent event, edu.iris.Fissures.network.ChannelImpl channel, edu.iris.Fissures.IfSeismogramDC.RequestFilter[] original, edu.iris.Fissures.IfSeismogramDC.RequestFilter[] available, edu.iris.Fissures.seismogramDC.LocalSeismogramImpl[] seismograms, CookieJar cookieJar) throws Exception
      Description copied from interface: WaveformProcess
      Processes localSeismograms, possibly modifying them.
      Specified by:
      accept in interface WaveformProcess
      Throws:
      Exception
    • calcTrigger

      public edu.sc.seis.fissuresUtil.bag.LongShortTrigger calcTrigger(edu.iris.Fissures.IfEvent.EventAccessOperations event, edu.iris.Fissures.IfNetwork.Channel channel, edu.iris.Fissures.seismogramDC.LocalSeismogramImpl[] seismograms) throws edu.iris.Fissures.IfEvent.NoPreferredOrigin, edu.iris.Fissures.FissuresException, edu.sc.seis.fissuresUtil.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.iris.Fissures.IfEvent.NoPreferredOrigin
      edu.iris.Fissures.FissuresException
      edu.sc.seis.fissuresUtil.bag.PhaseNonExistent
      edu.sc.seis.TauP.TauModelException
    • getCookieName

      public String getCookieName()
    • getPhaseName

      public String getPhaseName()
    • toString

      public String toString()
      Overrides:
      toString in class Object