### vectorScript

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 a two dimensional array of LocalSeismogramImpl objects. See the scripting tutorial for more information on inlining scripts into a SOD recipe.

### Example

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

    print "Hello Sod "
    out = []
    for perChanSeis in seismograms:
        seisout = array([], LocalSeismogramImpl)
        out.append(seisout)
        for s in perChanSeis:
    s = rmean(s)
    s = taper(rtrend(s))
    print s
    print
    print stat(s)
    print
    seisout.append(s)
        print "\n"
    result = util.waveformResult(True, out[0], out[1], out[2])
           </vectorScript>

### This consists of

<vectorScript>

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

### Places this can be found

In waveformVectorProcess there is a choice between all of the following

- threeComponentData
- ANDWaveformProcessWrapper
- ORWaveformProcessWrapper
- legacyVectorExecute
- waveformVectorFork
- waveformVectorAND
- waveformVectorOR
- waveformVectorNOT
- waveformVectorAlwaysSuccess
- seismogramProcess
- externalWaveformVectorProcess
- vectorImageProcess
- particleMotionPlot
- sampleSyncronize
- rotateGCP
- vectorTrim
- vectorScript
- iterDeconReceiverFunction