stationScript

Runs a station subsetter script via JSR223. The networkSource is put as "networkSource" and the station as "station". The station object is a VelocityStation, the same class used in the templates for the printlineStationProcess. See the scripting tutorial for more information on inlining scripts into a SOD recipe.

Example

<stationScript type="jython">
            from edu.sc.seis.fissuresUtil.chooser import ClockUtil
            from edu.sc.seis.sod.status import Pass, Fail
            if station.getEndDate().after(ClockUtil.now()):
                result = util.pass("Station is alive now")
            else:
                result = util.fail("Station is no longer active")
</stationScript>

This consists of

<stationScript>

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

Places this can be found

In station there is a choice between all of the following