Learn R Programming

eseis (version 0.8.0)

signal_stalta: 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)

Value

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

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.

Author

Michael Dietze

Examples

Run this code

## 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)

Run the code above in your browser using DataLab