signal_clip function

Clip signal based on time vector.

Clip signal based on time vector.

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 data data(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 object rockfall_clip <- signal_clip(data = rockfall_eseis, limits = limits)

Author(s)

Michael Dietze

  • Maintainer: Michael Dietze
  • License: GPL-3
  • Last published: 2025-03-25

Useful links