edu.sc.seis.sod.process.waveform.vector
Class VectorTrim

java.lang.Object
  extended by edu.sc.seis.sod.process.waveform.vector.VectorTrim
All Implemented Interfaces:
WaveformVectorProcess, SodElement, Subsetter, Threadable

public class VectorTrim
extends java.lang.Object
implements WaveformVectorProcess, Threadable


Constructor Summary
VectorTrim()
           
 
Method Summary
 WaveformVectorResult accept(CacheEvent event, ChannelGroup channelGroup, RequestFilter[][] original, RequestFilter[][] available, LocalSeismogramImpl[][] seismograms, CookieJar cookieJar)
           
static LocalSeismogramImpl alignTimes(LocalSeismogramImpl main, LocalSeismogramImpl shifty)
           
 LocalSeismogramImpl[][] cutVector(LocalSeismogramImpl[][] vector, Cut[] c)
           
 Cut[] findSmallestCoveringCuts(LocalSeismogramImpl[][] vector)
           
 boolean isThreadSafe()
           
 boolean normalizeSampling(LocalSeismogramImpl[][] impls)
          If the passed in seismograms sampling periods are all within 1% in size, each has its sampling set to the sampling of the first sampling
 LocalSeismogramImpl[][] trim(LocalSeismogramImpl[][] vector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorTrim

public VectorTrim()
Method Detail

accept

public WaveformVectorResult accept(CacheEvent event,
                                   ChannelGroup channelGroup,
                                   RequestFilter[][] original,
                                   RequestFilter[][] available,
                                   LocalSeismogramImpl[][] seismograms,
                                   CookieJar cookieJar)
                            throws java.lang.Exception
Specified by:
accept in interface WaveformVectorProcess
Throws:
java.lang.Exception

trim

public LocalSeismogramImpl[][] trim(LocalSeismogramImpl[][] vector)
                             throws FissuresException
Throws:
FissuresException

alignTimes

public static LocalSeismogramImpl alignTimes(LocalSeismogramImpl main,
                                             LocalSeismogramImpl shifty)
                                      throws FissuresException
Throws:
FissuresException

cutVector

public LocalSeismogramImpl[][] cutVector(LocalSeismogramImpl[][] vector,
                                         Cut[] c)
                                  throws FissuresException
Throws:
FissuresException

findSmallestCoveringCuts

public Cut[] findSmallestCoveringCuts(LocalSeismogramImpl[][] vector)

normalizeSampling

public boolean normalizeSampling(LocalSeismogramImpl[][] impls)
If the passed in seismograms sampling periods are all within 1% in size, each has its sampling set to the sampling of the first sampling


isThreadSafe

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