ConvolveTrace: Convolve Trace with Instrument Response

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/ConvolveTrace.R

Description

Convolves a single velocity trace (m/s) with a discrete instrument response to get the voltage signal it returns.

Usage

1
ConvolveTrace(x, DPZ, dec = 1)

Arguments

x

Velocity trace (m/s)

DPZ

Discrete instrument response (from MakeDPZ, for example)

dec

Oversampling/decimation factor (optional)

Details

Discrete instrument responses are specific to a given sampling rate. If the response you give has a different sample rate (given by DPZ$dt) from the trace x, you will get incorrect results. DPZ$dt times dec should be equal to the sample interval of the trace.

Value

Convolved trace in volts (vector).

Author(s)

Jake Anderson

See Also

DeconTrace, DeconSeis

Examples

1
2
3
4
5
# Response of Guralp CMG-40T
DPZ = GetDPZ(12, 1)[[1]]

x = rnorm(1000)
ConvolveTrace(x, DPZ)

TDD documentation built on May 2, 2019, 4:51 a.m.

Related to ConvolveTrace in TDD...