The function clips a seismic signal based on the corresponding time vector.
signal_clip(data, limits, time)
Arguments
data: eseis object, numeric vector or list of objects, data set to be processed.
limits: POSIXct vector of length two, time limits for clipping. Can also be a text string that will be converted to POSIXct format, with UTC assigned automatically.
time: POSIXct vector, corresponding time vector. Only needed if data is no eseis object.
Returns
Numeric data set clipped to provided time interval.
Examples
## load example datadata(rockfall)## define limits (second 10 to 20 of the signal)limits <- c(rockfall_t[1]+10, rockfall_t[1]+20)## clip signal rockfall_clip <- signal_clip(data = rockfall_z, time = rockfall_t, limits = limits)## clip signal using the eseis objectrockfall_clip <- signal_clip(data = rockfall_eseis, limits = limits)