seismogramScript

Runs a waveform subsetter script via JSR223. The event is put as "event" and the channel as "channel". The channel and event objects are a VelocityChannel and VelocityEvent, respectively, the same classes used in the templates for the printlineChannelProcess. The original request is put as "request" and the returned available data, also as an array of RequestFilter objects, is put as "available". The seismograms are put as "seismograms" as an array of LocalSeismogramImpl objects. See the scripting tutorial for more information on inlining scripts into a SOD recipe.

Example

<seismogramScript type="jython">
from jarray import array
from bag import rmean, taper, rtrend, stat
from edu.iris.Fissures.seismogramDC import LocalSeismogramImpl

print "Hello Sod: %s"%(channel,)
outSeis = []
for s in seismograms:
    s = rmean(s)
    s = taper(rtrend(s))
    print stat(s)
    print
    outSeis.append(s)
out = array(outSeis, LocalSeismogramImpl)
result = util.waveformResult(True, out)
       </seismogramScript>

This consists of

<seismogramScript>

An attribute named type with a value of Any Text Any text
</seismogramScript>

Places this can be found

In seismogramProcess there is a choice between all of the following