edu.sc.seis.fissuresUtil.bag
Class SimplePhaseStoN

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.bag.SimplePhaseStoN
Direct Known Subclasses:
CompoundPhaseStoN

public class SimplePhaseStoN
extends java.lang.Object

Calculates a signal to noise ration around a phase. The short time window (numerator of the ratio) is given by the standard deviation of the section of the seismogram from phase + shortOffsetBegin to phase + shortOffsetEnd. The long time window (demominator of the ratio) is similar. The first arriving phase of the calculated arrivals is used.


Field Summary
protected  PhaseCut longCut
           
protected  TimeInterval longOffsetBegin
           
protected  TimeInterval longOffsetEnd
           
protected  java.lang.String phase
           
protected  PhaseCut shortCut
           
protected  TimeInterval shortOffsetBegin
           
protected  TimeInterval shortOffsetEnd
           
protected  TauPUtil taup
           
 
Constructor Summary
SimplePhaseStoN(java.lang.String phase)
          Defaults to plus and minues 5 seconds around the phase for the short time interval, and the preceeded 100 seconds before that for the long time interval.
SimplePhaseStoN(java.lang.String phase, TimeInterval shortOffsetBegin, TimeInterval shortOffsetEnd, TimeInterval longOffsetBegin, TimeInterval longOffsetEnd)
           
SimplePhaseStoN(java.lang.String phase, TimeInterval shortOffsetBegin, TimeInterval shortOffsetEnd, TimeInterval longOffsetBegin, TimeInterval longOffsetEnd, TauPUtil taup)
           
 
Method Summary
 LongShortTrigger process(Location stationLoc, Origin origin, LocalSeismogramImpl seis)
          Calculates the trigger value for the given wondows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

phase

protected java.lang.String phase

shortOffsetBegin

protected TimeInterval shortOffsetBegin

shortOffsetEnd

protected TimeInterval shortOffsetEnd

longOffsetBegin

protected TimeInterval longOffsetBegin

longOffsetEnd

protected TimeInterval longOffsetEnd

shortCut

protected PhaseCut shortCut

longCut

protected PhaseCut longCut

taup

protected TauPUtil taup
Constructor Detail

SimplePhaseStoN

public SimplePhaseStoN(java.lang.String phase,
                       TimeInterval shortOffsetBegin,
                       TimeInterval shortOffsetEnd,
                       TimeInterval longOffsetBegin,
                       TimeInterval longOffsetEnd,
                       TauPUtil taup)
                throws edu.sc.seis.TauP.TauModelException
Throws:
edu.sc.seis.TauP.TauModelException

SimplePhaseStoN

public SimplePhaseStoN(java.lang.String phase,
                       TimeInterval shortOffsetBegin,
                       TimeInterval shortOffsetEnd,
                       TimeInterval longOffsetBegin,
                       TimeInterval longOffsetEnd)
                throws edu.sc.seis.TauP.TauModelException
Throws:
edu.sc.seis.TauP.TauModelException

SimplePhaseStoN

public SimplePhaseStoN(java.lang.String phase)
                throws edu.sc.seis.TauP.TauModelException
Defaults to plus and minues 5 seconds around the phase for the short time interval, and the preceeded 100 seconds before that for the long time interval.

Throws:
edu.sc.seis.TauP.TauModelException
Method Detail

process

public LongShortTrigger process(Location stationLoc,
                                Origin origin,
                                LocalSeismogramImpl seis)
                         throws FissuresException,
                                edu.sc.seis.TauP.TauModelException,
                                PhaseNonExistent
Calculates the trigger value for the given wondows. Returns null if either of the windows have no data in them.

Throws:
FissuresException
edu.sc.seis.TauP.TauModelException
PhaseNonExistent