signal_clip: Clip signal based on time vector.

View source: R/signal_clip.R

signal_clipR Documentation

Clip signal based on time vector.

Description

The function clips a seismic signal based on the corresponding time vector.

Usage

signal_clip(data, time, limits)

Arguments

data

eseis object, numeric vector or list of objects, data set to be processed.

time

POSIXct vector, corresponding time vector. Only needed if data is no eseis object.

limits

POSIXct vector of length two, time limits for clipping.

Value

Numeric data set clipped to provided time interval.

Author(s)

Michael Dietze

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)
                             

eseis documentation built on Aug. 10, 2023, 5:08 p.m.

Related to signal_clip in eseis...