pick_stalta {eseis} | R Documentation |
Calculate stal-lta-ratio.
Description
The function calculates the ratio of the short-term-average and long-term-average of the input signal.
Usage
pick_stalta(data, time, dt, sta, lta, freeze = FALSE, on, off)
Arguments
data |
|
time |
|
dt |
|
sta |
|
lta |
|
freeze |
|
on |
|
off |
|
Value
data frame
, detected events (ID, start time, duration in
seconds, STA-LTA vaue).
Author(s)
Michael Dietze
Examples
## load example data
data(rockfall)
## filter signal
rockfall_f <- signal_filter(data = rockfall_eseis,
f = c(1, 90),
p = 0.05)
## calculate signal envelope
rockfall_e <- signal_envelope(data = rockfall_f)
## pick earthquake and rockfall event
p <- pick_stalta(data = rockfall_e,
sta = 100,
lta = 18000,
freeze = TRUE,
on = 5,
off = 3)
p$picks