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>
Places this can be found
In seismogramProcess there is a choice between all of the following
- printlineSeismogramProcess
- sacWriter
- mseedWriter
- asciiWriter
- wavWriter
- recordSectionDisplayGenerator
- responseGain
- phaseCut
- requestCut
- merge
- gapFill
- rMean
- rTrend
- taper
- externalWaveformProcess
- seismogramScript
- localSeismogramTemplateGenerator
- filter
- rms
- oregonDSPFilter
- forkProcess
- alwaysSuccess
- phaseSignalToNoise
- compoundPhaseSignalToNoise
- seismogramImageProcess
- legacyExecute
- seismogramAND
- seismogramOR
- seismogramNOT
- someDataCoverage
- noDataGaps
- fullDataCoverage
- integrate
- differentiate
- transferResponse
- collapseOverlaps
- div
- mul
- invertFlippedChannels
- seismogramSampling
- decimate
- stddev
- rms
- mean
- minMax
- compressionType
- availableDataPlus