vectorRequestGeneratorScript

Runs a request generater script via JSR223. The event is put as "event" and the channelGroup as "channelGroup". The channelGroup and event objects are a VelocityChannelGroup and VelocityEvent, respectively, the same classes used in the templates for the printlineChannelProcess. The result is expected to be put as "request" by the script as a List of List or a 2D array of RequestFilter objects. See the scripting tutorial for more information on inlining scripts into a SOD recipe.

Example

<vectorRequestGeneratorScript type="jython">

   from java.util import ArrayList
   from edu.iris.Fissures.IfSeismogramDC import RequestFilter
   from edu.iris.Fissures.model import TimeInterval, UnitImpl
   window = TimeInterval(5, UnitImpl.MINUTE)
   result = ArrayList()
   for c in channelGroup.channels:
       chanResult = ArrayList() 
       rf = RequestFilter(c.id,
      event.preferred.fissuresTime,
      event.preferred.time.add(window).getFissuresTime())
       chanResult.add(rf)
       result.add(chanResult)
</vectorRequestGeneratorScript>

This consists of

<vectorRequestGeneratorScript>

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

Places this can be found

In vectorRequestGenerator there is a choice between all of the following