signal_hvratio {eseis} | R Documentation |
Calculate h-v-ratio of seismic components
Description
This function uses three components of a seismic signal, evaluates their spectra and builds the ratio of horizontal to vertical power. For details see http://www.geopsy.org/documentation/geopsy/hv.html.
Usage
signal_hvratio(
data,
dt,
log = FALSE,
method = "periodogram",
kernel,
order = "xyz"
)
Arguments
data |
|
dt |
|
log |
|
method |
|
kernel |
|
order |
|
Details
The spectra should be smoothed. This can either be done directly
during their calculation or before the calculation of the ratio. For
the former case set method = "autoregressive"
. For the latter
case provide a value for "kernel"
, which is the smoothing
window size. Smoothing is performed with the logarithms of the spectral
power data, using caTools::runmean()
with the
endrule = "NA"
. After smoothing the data is re-linearised.
Value
A data frame
with the h-v-frequency ratio.
Author(s)
Michael Dietze
Examples
## load example data set
data(earthquake)
## ATTENTION, THIS EXAMPLE DATA SET IS FAR FROM IDEAL FOR THIS PURPOSE
## detrend data
s <- signal_detrend(data = s)
## calculate h-v-ratio, will be very rugged
hv <- signal_hvratio(data = s,
dt = 1 / 200)
plot(hv$ratio,
type = "l")
## calculate h-v-ratio using the autogressive spectrum method
hv <- signal_hvratio(data = s,
dt = 1 / 200,
method = "autoregressive")
plot(hv, type = "l")
## calculate h-v-ratio with a smoothing window equivalent to dt
hv <- signal_hvratio(data = s,
dt = 1 / 200,
kernel = 200)
plot(hv, type = "l")