DIGITAL FILTERS

15
1 1 0 N , , , n , x h x h y M M k k k n M M k k n k n DIGITAL FILTERS

description

DIGITAL FILTERS. Box Car filter. Running Mean. Moving Average. M = 48. M = 49. M = 50. Impulse Response. Normalized SINC function windowed by the Lanczos window. M is the filter length (# of filter coefficients)  N is the sampling frequency = 2π/ Δ t - PowerPoint PPT Presentation

Transcript of DIGITAL FILTERS

Page 1: DIGITAL FILTERS

110

N,,,n,xhxhyM

Mkkkn

M

Mkknkn

DIGITAL FILTERS

Page 2: DIGITAL FILTERS

Box Car filter

Running Mean

Moving Average12

1

Mhk

12

0

M

k kh

Page 3: DIGITAL FILTERS

1100

N,,,n,xxhyM

kknknkn

M = 48

M = 49

M = 50

Impulse Response

Page 4: DIGITAL FILTERS

Nc

Nc

N

ck /k

)/ksin(

M/k

)M/ksin(h

M is the filter length (# of filter coefficients)

N is the sampling

frequency = 2π/Δt

c is the cut-off

frequency = 2π/Tc

Normalized SINC function windowed by the Lanczos window

Page 5: DIGITAL FILTERS

repeat

wrap

Page 6: DIGITAL FILTERS

High-pass filtered : Original – Low-Pass

Page 7: DIGITAL FILTERS

Impulse Response

M

Mkknkn xhy

Frequency Response (Fourier Transform of Impulse Response)

M

Mn

tin

neyY

M

Mn

tikn

M

Mk

tik

knk exeh

XH

M

Mk

tik

kehH

Frequency Response or Admittance Function

Page 8: DIGITAL FILTERS

c

c

@

@H

0

1Low-pass:

0

1

c N

PassBand

StopBand

H

Page 9: DIGITAL FILTERS

c

c

@

@H

1

0High-pass:

0

1

c N

PassBand

StopBand

H

Page 10: DIGITAL FILTERS

otherwise

@H cc

0

1 21 Band-pass:

0

1

c1 N

PassBand

StopBand

H

c2

StopBand

Page 11: DIGITAL FILTERS

Band-pass filtered

1) High-pass to cut-off the upper bound period (e.g. 18 hrs)

2) Low-pass to cut-off the lower bound period (e.g. 4 hrs)

Page 12: DIGITAL FILTERS

H(

)

/ N

M

Mk

tik

kehH

Frequency Response or Admittance Function(Running Mean)

Gibbs’ Phenomenon

Page 13: DIGITAL FILTERS

Hamming)M/kcos(..

LanczosM/k

)M/ksin(

46540

( )

Nc

Nc

N

ck /k

)/ksin(

M/k

)M/ksin(h

Lynch (1997, Month. Wea. Rev., 125, 655)

Page 14: DIGITAL FILTERS

Butterworth Filter

q

c

H2

2

1

1

http://cnx.org/content/m10127/latest/

q = 1

q = 4 q = 10

Page 15: DIGITAL FILTERS

Exercises

http://www.falstad.com/dfilter/