Learn R Programming

TDD (version 0.1)

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)

Arguments

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.

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