signal_stalta: Calculate the short-time-average to long time average ratio

View source: R/signal_stalta.R

signal_staltaR Documentation

Calculate the short-time-average to long time average ratio

Description

This function calculates the short-time-average to long time average (STA-LTA) ratio of a seismic signal and returns that ratio time series.

Usage

signal_stalta(data, sta, lta, lazy = FALSE)

Arguments

data

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

sta

Numeric value, length of the short time average window size, in number of samples.

lta

Numeric value, length of the long time average window size, in number of samples.

lazy

Logical value, option to preprocess data, including demeaning, detrending and envelope calculation. Default is FALSE.

Value

Numeric vector or list of vectors, STA-LTA ratio signal.

Author(s)

Michael Dietze

Examples


## load example data
data(rockfall)

## calculate STA-LTA ratio
rockfall_stalta <- signal_stalta(data = rockfall_eseis, 
                                 sta = 0.5 * 200, 
                                 lta = 10 * 200, 
                                 lazy = TRUE)


coffeemuggler/eseis documentation built on Nov. 25, 2024, 8:31 p.m.