pre_proc | R Documentation |
This function pre-process time series (noise). The pre-processing includes mean removal, Taper, and Butterworth filter
pre_proc(
ts,
dt,
detrend = 1,
taper_flag = TRUE,
t_front,
t_end,
filter_flag = TRUE,
fc,
nPole,
is_causal,
order_zero_padding
)
ts |
An array of time series |
dt |
The time step |
detrend |
The indicator specifies which detrend method is used. 0: no detrend; 1: mean removal; 2: linear trend removal. |
taper_flag |
The flag indicates if Taper is applied |
t_front |
A number, the percentage of taperring for the beginning of the time series |
t_end |
A number, the percentage of taperring for the end of the time series |
filter_flag |
The flag indicates if filter is applied |
fc |
The corner frequency for low-pass/high-pass |
nPole |
The parameter for the order, where the order is 2 * nPole. Positive for low-pass; Negative for high-pass Generally, nPole = 4 for low-pass and nPole = -5 for high-pass |
is_causal |
A binary to indicator if causal is applied. Apply causal if is_causal = TRUE and apply acausal if is_causal = FALSE |
order_zero_padding |
The order needs to be added for zeroes padding at the end of recordings to increase the number of data points to a power of 2 (Kishida T., Darragh R.B., Chiou B.S.J., Bozorgnia Y., Mazzoni S., Contreras V., Boroschek R., Rojas F., Stewart J.P., 2020. Chapter 3: Ground Motions and Intensity Measures, in Data Resources for NGA-Subduction Project, PEER Report 2020/02, J.P. Stewart (editor), Pacific Earthquake Engineering Research Center, UC Berkeley (headquarters).) |
The filtered time series
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.