Learn R Programming

TDD (version 0.4)

ConvolveTrace: Convolve Trace with Instrument Response

Description

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

Usage

ConvolveTrace(x, DPZ, dec = 1)

Arguments

x
Velocity trace (m/s)
DPZ
Discrete instrument response (from MakeDPZ, for example)
dec
Oversampling/decimation factor (optional)

Value

Convolved trace in volts (vector).

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.

See Also

DeconTrace, DeconSeis

Examples

Run this code
# Response of Guralp CMG-40T
DPZ = GetDPZ(12, 1)[[1]]

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

Run the code above in your browser using DataLab