All examples for TRCMATH
# Measurement of trace amplitudes
#
# Measurement of RMS amplitudes of several arrivals in time windows
# determined by trace header parameters:
# [fbreak..fbreak1] for the first arrival, the
# output goes to the header a-fb, etc.
#
# Note that the absence of the travel-time peaks is indicated with the
# negative values of the window time starts (fbreak, pmp, etc).
# Thus, the time starts are also used to select the traces for processing
*call trcmath
ampl fbreak 0 fbreak fbreak1 rms a-fb
ampl pmp 0 pmp pmp1 rms a-pmp
ampl sdir 0 sdir sdir1 rms a-sdir
ampl sms 0 sms sms1 rms a-sms
# /\ /\
#### this is the selector (the operation is performed on traces for which fbreak > 0, etc.)