Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems Linear systems: basic...

54
Computational Geophysics and Data Analysis 1 Linear systems Linear Systems Linear systems: basic concepts Other transforms Laplace transform z-transform Applications: Instrument response - correction Convolutional model for seismograms Stochastic ground motion Scope: Understand that many problems in geophysics can be reduced to a linear system (filtering, tomography, inverse problems).

Transcript of Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems Linear systems: basic...

Page 1: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis1

Linear systems

Linear Systems

Linear systems: basic concepts Other transforms

Laplace transform z-transform

Applications: Instrument response - correction Convolutional model for seismograms Stochastic ground motion

Scope: Understand that many problems in geophysics can be reduced to a linear system (filtering, tomography, inverse problems).

Page 2: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis2

Linear systems

Linear Systems

Page 3: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis3

Linear systems

Convolution theorem

The output of a linear system is the convolution of the input and the impulse response (Green‘s function)

Page 4: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis4

Linear systems

Example: Seismograms

-> stochastic ground motion

Page 5: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis5

Linear systems

Example: Seismometer

Page 6: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis6

Linear systems

Various spaces and transforms

Page 7: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis7

Linear systems

Earth system as filter

Page 8: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis8

Linear systems

Other transforms

Page 9: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis9

Linear systems

Laplace transform

Goal: we are seeking an opportunity to formally analyze linear dynamic (time-dependent) systems. Key advantage: differentiation and integration become multiplication and division (compare with log operation changing multiplication to addition).

Page 10: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis10

Linear systems

Fourier vs. Laplace

Page 11: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis11

Linear systems

Inverse transform

The Laplace transform can be interpreted as a generalization of the Fourier transform from the real line (frequency axis) to the entire complex plane. The inverse transform is the Brimwich integral

Page 12: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis12

Linear systems

Some transforms

Page 13: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis13

Linear systems

… and characteristics

Page 14: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis14

Linear systems

… cont‘d

Page 15: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis15

Linear systems

Application to seismometer

Remember the seismometer equation

Page 16: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis16

Linear systems

… using Laplace

Page 17: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis17

Linear systems

Transfer function

Page 18: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis18

Linear systems

… phase response …

Page 19: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis19

Linear systems

Poles and zeroes

If a transfer function can be represented as ratio of two polynomials, then we can alternatively describe the transfer function in terms of its poles and zeros. The zeros are simply the zeros of the numerator polynomial, and the poles correspond to the zeros of the denominator polynomial

Page 20: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis20

Linear systems

… graphically …

Page 21: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis21

Linear systems

Frequency response

Page 22: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis22

Linear systems

The z-transform

The z-transform is yet another way of transforming a disretized signal into an analytical (differentiable) form, furthermore

Some mathematical procedures can be more easily carried out on discrete signals

Digital filters can be easily designed and classified The z-transform is to discrete signals what the Laplace

transform is to continuous time domain signals

Definition:

n

n

nnn zxzXxZ )(

In mathematical terms this is a Laurent serie around z=0, z is a complex number.

(this part follows Gubbins, p. 17+)

Page 23: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis23

Linear systems

The z-transform

for finite n we get

Nn

n

nnn zxzXxZ

0

)(

Z-transformed signals do not necessarily converge for all z. One can identify a region in which the function is regular. Convergence is obtained with r=|z| for

crxn

nn

Page 24: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis24

Linear systems

The z-transform: theorems

let us assume we have two transformed time series

n

n

yZzY

xZzX

)(

)(

Linearity:

Advance:

Delay:

Multiplication:

Multiplication n:

)()( zbYzaXbyax nn

)(zXzx NNn

)(zXzx NNn

)(azXxa nn

)(zXdz

dznxn

Page 25: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis25

Linear systems

The z-transform: theorems

… continued

Time reversal:

Convolution:

… haven‘t we seen this before? What about the inversion, i.e., we know X(z) and we want to get xn

zXx n

1

)()( zYzXyx nn

,....2,1,0,)(

2

11

ndzz

zX

ix

Cnn Inversion

Page 26: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis26

Linear systems

The z-transform: deconvolution

Convolution:

)()( zYzXyx nn

If multiplication is a convolution, division by a z-transform is the deconvolution:

)(/)()( zYzXzZ

Under what conditions does devonvolution work? (Gubbins, p. 19)

-> the deconvolution problem can be solved recursively

0

1)(

y

zyxz

p

k kpkpp

… provided that y0 is not 0!

Page 27: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis27

Linear systems

From the z-transform to the discrete Fourier transform

We thus can define a particular z transform as

Let us make a particular choice for the complex variable z

tiez

tkiN

kkeaN

A

1

0

1)(

this simply is a complex Fourier serie. Let us define (f being the sampling frequency)

fnTN

n

T

nn

222

Page 28: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis28

Linear systems

From the z-transform to the discrete Fourier transform

This leads us to:

NiknN

nnk

NinkN

kkn

eAa

NneaN

A

/21

0

/21

0

1,...2,1,0,1

… which is nothing but the discrete Fourier transform. Thus the FT can be considered a special case of the more general z-transform!

Where do these points lie on the z-plane?

Page 29: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis29

Linear systems

Discrete representation of a seismometer

… using the z-transform on the seismometer equation

… why are we suddenly using difference equations?

Page 30: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis30

Linear systems

… to obtain …

Page 31: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis31

Linear systems

… and the transfer function

… is that a unique representation … ?

Page 32: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis32

Linear systems

Filters revisited … using transforms …

Page 33: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis33

Linear systems

RC Filter as a simple analogue

Page 34: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis34

Linear systems

Applying the Laplace transform

Page 35: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis35

Linear systems

Impulse response

… is the inverse transform of the transfer function

Page 36: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis36

Linear systems

… time domain …

Page 37: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis37

Linear systems

… what about the discrete system?

Time domain Z-domain

Page 38: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis38

Linear systems

Further classifications and terms

MA moving average

FIR finite-duration impulse response filters

-> MA = FIR

Non-recursive filters - Recursive filters

AR autoregressive filters

IIR infininite duration response filters

Page 39: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis39

Linear systems

Deconvolution – Inverse filters

Deconvolution is the reverse of convolution, the most important applications in seismic data processing is removing or altering the instrument response of a seismometer. Suppose we want to deconvolve sequence a out of sequence c to obtain sequence b, in the frequency domain:

)(

)()(

A

CB

Major problems when A() is zero or even close to zero in the presence of noise!

One possible fix is the waterlevel method, basically adding white noise,

Page 40: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis40

Linear systems

Using z-tranforms

Page 41: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis41

Linear systems

Deconvolution using the z-transform

One way is the construction of an inverse filter through division by the z-transform (or multiplication by 1/A(z)). We can then extract the corresponding time-representation and perform the deconvolution by convolution … First we factorize A(z)

N

nN zzazA

00 )()(

And expand the inverse by the method of partial fractions

N

i n

n

zzzA 0 )()(

1

Each term is expanded as a power series

...1

1

)(

12

nnnn z

z

z

z

zzz

Page 42: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis42

Linear systems

Deconvolution using the z-transform

Some practical aspects:

Instrument response is corrected for using the poles and zeros of the inverse filters

Using z=exp(it) leads to causal minimum phase filters.

Page 43: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis43

Linear systems

A-D conversion

Page 44: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis44

Linear systems

Response functions to correct …

Page 45: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis45

Linear systems

FIR filters

More on instrument response correction in the practicals

Page 46: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis46

Linear systems

Other linear systems

Page 47: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis47

Linear systems

Convolutional model: seismograms

Page 48: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis48

Linear systems

The seismic impulse response

Page 49: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis49

Linear systems

The filtered response

Page 50: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis50

Linear systems

1D convolutional model of a seismic trace

The seismogram of a layered medium can also be calculated using a convolutional model ...

u(t) = s(t) * r(t) + n(t)

u(t) seismograms(t) source waveletr(t) reflectivity

The seismogram of a layered medium can also be calculated using a convolutional model ...

u(t) = s(t) * r(t) + n(t)

u(t) seismograms(t) source waveletr(t) reflectivity

Page 51: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis51

Linear systems

Deconvolution

Deconvolution is the inverse operation to convolution.

When is deconvolution useful?

Deconvolution is the inverse operation to convolution.

When is deconvolution useful?

Page 52: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis52

Linear systems

Stochastic ground motion modelling

Y strong ground motionE sourceP pathG siteI instrument or type of motionf frequencyM0 seismic moment

From Boore (2003)

Page 53: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis53

Linear systems

Examples

Page 54: Linear systemsComputational Geophysics and Data Analysis 1 Linear Systems  Linear systems: basic concepts  Other transforms  Laplace transform  z-transform.

Computational Geophysics and Data Analysis54

Linear systems

Summary

Many problems in geophysics can be described as a linear system

The Laplace transform helps to describe and understand continuous systems (pde‘s)

The z-transform helps us to describe and understand the discrete equivalent systems

Deconvolution is tricky and usually done by convolving with an appropriate „inverse filter“ (e.g., instrument response correction“)