## load example data set
data(earthquake)
## filter seismic signals
s <- eseis::signal_filter(data = s,
dt = 1/200,
f = c(1, 3))
## convert list of signal vectors to column-wise matrix
s <- do.call(cbind, s)
## calculate particle motion parameters
pm <- signal_motion(data = s,
dt = 1 / 200,
window = 500,
step = 250)
## plot function output
par_original <- par(no.readonly = TRUE)
par(mfcol = c(2, 2))
plot(pm$time, pm$rect, type = "b")
plot(pm$time, pm$plan, type = "b")
plot(pm$time, pm$azimuth, type = "b")
plot(pm$time, pm$incidence, type = "b")
par(par_original)
Run the code above in your browser using DataLab