Professional Documents
Culture Documents
-~ :~__,~:~~;~~t~t:;:
~~-... .,. - --~:~ ~-:.~~::--'."
";"\ 1"::- ~';;~~;--'
.. - ;-
By
prepared by
and
Contract (14-08-00Jl-16504'
"'
ABSTRACT
,,i
i'
samples in time.
Descriptions of the algorithms f'or cascade
ii
,. ;
'
TABLE OF CONTENTS
Page
ABSTRACT iv
LIST OF TABLES-- vii
LIST OF FIGURES viii .
I. INTRODUCTION 1
A. Magnetotellurics 1
B. Real Time Processing 3
II. REAL TIME MAGNETOTELLURICS 8
A. Definition of Cascade Decimation 8
B. Hardware for Real Time Processing 10
C. Spectral Estimates 13
D. Resistivity Soundings 17
III. OVERVIEW OF CASCADE DECIMATION 20
iii
i
L-
..,, i
i
VIII. CONCLUSIONS 58
A. Performance of Cascade Decimation 58
B. Cq~parison of Cascade Decimation and FFT 62
c. Future Work 71
APPENDIX 1 Flowcharts For Program DECIMATE 73
APPENDIX 2 Program Listing of DECIMATE 84
BIBLIOGRAPHY
iv
- ------- -- - - - - -
I I
I
LIST OF TABLES !
i
:
No. Page
--
1 Results of Cascade Decimation Applied
to Artificial Data 59
2 FFT Harmonics Averaged to Give Constant
Percentage Bandwidth Spectr a 63
j '.
r
... __ _
~.
LIST OF FIGURES
No. Page
vi
,.
I
,,_ -
,.
;,.
I. INTRODUCTION
A. Magnetotellurics
1
?2
~lL---
~ --
E =Z H (l-3a)
x xy y
E = Z H (l-3b)
y yx x
Izyx 12 (l-4b)
PAxy = w
..._____ __
'!
- - - - -- - - - - - - - -
5
""
~-..,.,,,.. . . ._ .. ,.,...,.-...__~~~-~""'3~~":~Xlf""'"~~~~~:;:i
II. REAL TIME MAGNETOTELLURICS USING CASCADE DECIMATION
f:.,.
i1L
INCOMING
DATA LEVEL LEVEL L
,.....-
,,
F1 DI
SI
::: ... SL-I
....
- FL DL
'II
ALIAS DECIMATE
v 111
-
H FILTER BY 2 H
H
'l HANNING
WINDOW
!
~~
32
'- Cs N=I
.
....
c6 ~I
N=I
c6 I
N=I
l i
!l
', ss .... L ...
s6 ...,
I s6 L
lI
i J
j '- Cs ...,
L ...,
Ca
...
~
I Ca L
j
~~ ~
i
~ '
...
,
Sa ....
L ...,
Sa ...,
I Sa L
SINE AND COSINE ACCUMULATE
TRANSFORM FOR FOURIER
6th~ 8th HARMONIC COEFFICIENTS
it~~~~~~----
10
i~ '
Ex [
BUFFERED
ELECTROLYTE
Ev
!
ELECTRODES
Hx {
Hv
I
~~Hz [
INDUCTION
I. MAGNETOMETERS
I
I
I' Figure 2 -: Hardware for Real Time Processing
lI -
l
I --.--- - - ------------ -- -
'i! ~
-----------==--- _:;______ --
i,;..~~---- '~------ . --- - -
--- - --
- ---- ---- -- . -- ------------- - .... --------
- --- --- ---- -- ... -------- .-__:; .-: .:_:____:_____:=___:_:::_;_:;__________~; ______~--- - .. - -- ;. - - _ ______ _;-_-------~-- -- -----
_i~'~l111'..~$ii~~i-"1!i~-\'1 Fm., ....,,-.;.:;::;;:-:::;;:;;;;;;;_;,.. 7:,.;;;;"'."'~;.."'".~;;11;;.~;;.-..-:..-; :::::::;:;:;;.-,:_:~=J::-..;::;;:.~~_.:;:;;..;...;;_;;,;;,e:;Z;;:;_:::;:;:.:-;;,;~"""=T.:~~~~~~;~i;;;'"-;_;~~
-- ___ _;; -
""
: i!f J Jr l
;.
~;
ft-~-
~!~i \
,_
12
c. Spectral Estimates
Data over the entire frequency range for low
frequency MT may be analyzed in one run by cascade
decimation. The computational requirements are such that
it is not necessary to divide the alalysis into several
frequency bands as is done for FFT analysis. Computation
of the MT tensor impedances requires at least two
independent estimates tor each auto or cross power
spectral term. One key difference between FFT and cascade
decimation is the nature of these independent estimates.
The fast Fourier transform algorithm is applied
to a data record of length N, where N is some power of 2.
The algorithm yields the Fourier coefficients for the real
and imaginary components of the first N/2 harmonics of the
independent.
"~ 70.::-:~-:z. ,~,~~~~1~~~rf~~7:~~~,,-~~~~~~~.-~~::~--"~ d
~~:r::.. ~ .. -=-1-.:a:xr~ ..........:.- -r- ..;.;..M.......;.. __;,_L:..: . zf: . .:-. ---...;........,~~ _.......... ~-..................4?... - -~
17
D. Resistivity Soundings
When the operator who is monitoring the number of
i 'J ,,.
independent samples contributing to the power spectra
estimates feels that - sufficient data has been collected,
the run is terminated. The raw power spectra estimates
are normalized for the number of independent samples and
the response of the cascade decimation process. The
resulting data; all possible auto and cross power spectra l :
E = Z H + Z H (2-lb)
y yx x yy y
"
-
18
(H H*) (E H*) - (E H*) (H H*)
=xx xy xx xy
zxy (2-2)
(H H*) (H H*) - (H H*) (H H*)
xx yy yx xy
H =Y E +Y E (2-3a)
x xx x xy y
H =Z H +Z H (2-3b)
y yx x yy y
-1
[Z] = [Y] (2-5)
and from this comes the second set or estimates used for
Zxy and Zyx. It can be shown that the latter estimates
are biased upward by noise on the E signal and the former
are biased downward by noise on the H signal (Sims, 1971).
The angle which maximizes
l i
--~----- - . ,..._--~
. ,. ,. ________________ _______ ____ _.. . ...,._._...,......._,..._
III. OVERVIEW OF CASCADE DECIMATION
20
-~ c
..;'_$ -
21
~
t
;Iii.
'1
~
~!. . .(;';,
'
f~ !l
' .;ti
Cascade Decimaf ion n
't !1
- -
.s:.
lD
t
.s:.
CX)
I
- -
.s:.
lD
t
.J:.
Cl)
I
- -
.s:.
lD
.J:.
CD
I
- -
.s:.
lD
I
.J::.
CX)
I
- -
.J::.
lD
I
.c
CX)
I
- -
.J::.
IJ)
I
..c.
CX)
I
- -
..c.
lD
I
.J::.
CX)
I
)if ~
i
J 11P+J1
::fj
' ' 1-il..
l:; ! '/iJ.
<D lD I{) Ii) r<) r<) (\J (\J - - 0 0 ~w
..;
QJ Qj QJ
- (I)
"""
- (I)
-"""
QJ
-(I)
-(I) -(I)
-
(I)
-(I) - (I)
-(I) (I) I:l Jl~~ L .
Ql
> >
Q)
>
Q)
>
Q)
>
Q) QJ
> >
Q)
>
Q)
>
Q)
>
Q)
>
Q)
>
(I) Q)
>
Q)
_J
> i!d;a
h i .1n.
_J _J _J _J _J _J _J _J _J _J _J _J _J j -~ ~
i!J:~
,,
tit
f! I \:!
.k.,
I
I I I I I I I I I I I I I I I I
frequency
I I
~
I
.
I
' ~ I:-:
.j'.1
k ~ ~~ !1
;f ~
.;
,,1,,.
'Ii'
.,
i
I, I'
II d
t:
, :~
Harmonic
I
l ....
2 3 4 5 6 7 8 16 32 64
' .
' !1
~:
Number . 1.1~ i
J ' ?;
Fast Fourier Transform '!.~
II '. .,'.
. 11" ' 1l.\ ~
tii~
i i",,.,"
~: !ff~
!
~r .rr
.I d
.,: .. (
,I ~{i
I i,,iJ~
: l (lqi
. t,~ 1
I f~
N
N
1
~-t\';\
.~
" ~l
t1
l
~e ~ ~ ~r~~ --:-= ~~~-=;..;:i. :. --~ ,.. ;...__~ ----....._ --~~~ ~-- .:::=. ;_ ~ ~~:::;~:'.'";~.:.:~. ~~~:~. ..;~ ~ --- -:-.:.:::::::.=.:::;:~__:::'~---~ -- :.:.: ._=..:..::.--~.:::;_...: --
-- ------
----
- ----~--- - -
-- - -
-- .::.:.::::-:;:- .:-:::::: . ~ ..;:;_:.:
" ' " - -----~- -----------
.
.~::.-~.: ~ ,,.~~=~ ~~:::":'!~ ~~ -'!~~ ~ ...
-
23
- -- -- - -- -- ----- .. . .
- ~-~
~
~ .~
.
-
... :::.:-..
"', ..;;;-:~-;;..~,...,..:: -.:,,..,_:.:;
- -- ..... - -- -
- -" ....
7"*-~-:--:-:1!'>~~~~- >c-
.,.... . -
~~ ; ......_.r:tf_
... ~ ::--~r-~- ~t-:-~.!?:"~~.. ~-
. ... -
-.!':. .: ..-r'.! - -.-.......... - .....
....
-~
~~~.,...;1...
,.,.... -
i-. ..,.."":"-=>'
-,..
.~-~- .-..,....... ..........._
.....,,,.,,~
A. Objective
00
h ( nT) sin Zn fn (t-nT) (4-2)
n~ -co
I
h t
( )
= T n (t - nT) li
,j
is given by
T -= l (4-3)
4
0
26
, : --~ - - - ~"""
'"-. -~---..... :..""~~"'-'" .... .. .. h. ~ oO: . .<r." -~ "
U";< - ... .
..,. _ . - _ ___ ... _
~- - -
27
I
j,,, i ,.I,~ :!
-I ~
10 )'i~i
.__ I . I
RESPONSE
ALI AS
OF DIGITAL
Fl LTER OF LENGTH
I +:
,.
w
(f) FIVE.
>
"
z t :~ .,
I
0 i.,
a_
(f)
-2
w 10 t ~ ~ .11i:
f.;
a::: i } 'i,i
I
a:::
w
I-
_J
-
lJ...
'j
:111.
-3 1r!
10 ~-1 ~
.,
~ ~
... '--l;!'I
i '
...;,ii
I
t~~
' '
'..
4 f
10
. 25
f";y-;+
.50 .75 1.0 N
co
Figure 4 - Alias Filter Frequency Response
j
~
1
~
; -~-..-.,;.:..;:... -- -
:._ .. ,, . -- --~--~-- .....;;.- :..,~- -..:.:...--- - .., ...... ____ :....., __ ----
.__ . ;.:_'.- ~.- ..::: - - ~- -" :.-:-- . "".": TZ:::::-:-:::.~;;:;;;;;:;:;1.~-.. .. .;~~;; ;,..... ;;_;;;_~/;~ ~
l~ .j ri:; ; t..!:r !
11
.<i i ! !
~ Jr-'.{:'
~- ,. ir' 'l
~ .......
:....::'......
-~~-:w- ..:~'"'"
.. .. ... ......... ,jii'" ~
..........
~
. .... -:.,.. - -- ..... ---
~-
s.
-- ... -
-- _...,...,,
__ ..,.,,...,....
..~-=
"
"'
!ip-
29 :x
L
i:-
t~
. H.- -
(Walker, 1976). The filter coefficients used are: I p .....
it
I
l
'
L
HO 1. 0
Hl 3.41421356
H2 4.87100924 '
H3 3.41421356 !
H4 1. 0 I
I
In the following discussion, however, these coefficients
will be referred to as 1,3,4,3,l for simplicity. The
frequency response of the filter is given by
N-1
H(ejw) = L:: h e -jwnT
(4-5)
n
n=o
c:
0
......
.
ro
E
......
u
Q)
D
........
0
c:
0
......
.
ro
.
c:
Q)
Cl)
Q)
I...
0.
Q)
0:::
u
......
.
ro
E
Q)
..c
u
tr.l
LI")
_J
w
>
w
_J 0 C\J
ftr
.- . ~ ~ : .;;.:-;--:~~-=-.. :~ ~ ...
-...-.,,--- ... -
f.; ,~,. - - ~~---~:_~~-
- -.
31
("
I .,... r.
1 ~ ...,
r
ii ~~
~
B. Implementation
,.
' !.
II
5,
Figure depicting the cascade decimation
1; I
process, also may be used to explain the implementation of ":r
cascade decimation using only three registers per level. .1 I
,.
.. , .. ..=. ............. ~~- - ~--~ . ..:.---
#o. . -~--
- -~""': :::~-.., :t.' -~ '"' ..... , -t ,,, -- - .._. ......... ... -- "!'--- ,"""'*--:,.... __ ~~
32
L : --
! f ;_
Shift i
(B)---+ A : "
(C) - B
0 ~ c
11.
i.;
..
.,,_,"" - ....... ... . .. ~----
- ....
,... -.- .....~ -~ ----
.- - ... ....- ..
33
N-7 O 2 3 4 5 6
.,
i
I
.i
N a b c
0 I 4
CD EVEN
';
0
I
I 0 3 ODD j
I.
~ ~ -
' SHIFT
i
:!
2 I I EVEN ..
3 0
3 ODD
~ oE -
' SHI FT
4
CD 4 I EVEN
3
3 3 ODD
oE ~ -
' SHIFT
6 I 4 I EVEN
7 3 3 3 ODD
: -
34
'<
I ' -
35 t'
,j
';
!i . -.
.' ,',.
time compared to simple replacement and additions, this ' I
-~
I !t
- -!
feature can sign1f 1cantly reduce the worst case
computational effort required for processing an incoming I
data point. .i
I
Presently, the decimation process is implemented
on a HP-9825 programmable calculator which utilizes a
I
.I I
64-bit floating point representation for all variables. !
36
37
LO Iv LOlt>
90lv (\J
901t> (\J
SOlv SO Iv v
t>Olt> (\J t<) v t>Olt> (\J t')
I 0 Iv I 0 It> O'l 0
OOlv (\J r0 OOlv (IJ r<J
660v ,..._ U)
660t> U) co .......
.... (lJ
860t> (\J ::I 860t> (\J <..O :>
u (lJ
L60t> u L60v v L() H
0
9 60t> v u; <.D r--. co en Q - N 960t>
i....
N J'<)
- - - c
0
(IJ r<J (lJ
..c
S60t> .....
.....
S60v .....tr>
t>60v N IO t>60t> C\J ::r:
60t> .....6 60t> '+-<
0
u
2sov N t<)
(lJ
260v C\J r<J tr>
c::
0 .....
...c U)
....u (/)
..c:: (lJ
u
~
0
....
81 ..... 81 (\J
A.
C\J IO
'U
LI U)
......
LI v L() (lJ
....
(!)
91 ....
91 N t') <:t" L()
:> (\J r<") (lJ
'+-<
(!)
1 .....:l 1 (lJ
0
vi N vi C\J
1 r-.. 1 co
(!)
(lJ
21 C\J J'<) L.o
::I 21 (\J t') ....
::l
II .....tr>
.,,
II .....tr>
..,
01 C\J 01 (\J
6 6 v
8 C\J t') <:t" 8 (\J r<J
L L
9 N 9 (\J
g s;
v C\J rt) v C\J 10
t Q:
w
2 C\J
tQ:
w
2
I
- (\J
~ID I- ID
z :2 C\Jr0.;tlli<.Dt'--CD<:n Q-N Z:::E (IJ 10
o:::> - - -
a...z SN 01.ittv-J 1~30 ~O ' ON-+ ~ ~ SNOl.ittWl~30 .:W 'ON-+
~ '
J"
38
i 1
results in very poor time utilization. By deferring some ' !
,,
~
,:
--
.....
V. FOURIER TRANSFORMATION
A. Objective
L: S
n
, the Fourier coefficients for the
frequencies
6
f
6
= 32T x zL
(5- la)
8
f
8
= (5-lb)
6nn l
31
c
1
= L: s - [ 1-
6real n=o n 2
J[ cos 16--"
cos~~ (5-2a)
3l 1 [ nn J [ -sin 166nn J
c6i = L: s 2 l-cos15 (5-2b)
mag n=o n
31 1 r IlTT J [ 8nTT J
c = !: s 2 1 - cos15 cos 16 (5-2c)
8 1
rea n=o n L
- l
31 1
C. =L:Sz [ 1-
81mag n=o n
cos~~ J[ -sin -8nTT
16 _J
(S-2d)
39
40
s Knn (5-3)
=A cos
n 16
31 1 r
Knn
CKreal= r: 2 LA cos 16 - . Kmr
B srn"'l6
J[ 1- cos
nn
16 J[ cos 16 l
Knn
J (5-4a)
n=o
=BA
nn l [ . Knn J
l rLl - cos 16
31 1
CKirnag= L: z rLA Knn
cos~- Bsrnl6 -'
. Knn
J -srn15 (5-4b)
n=o
= BB
Because these coefficients are computed from data
to which a window of finite length has been applied, the
coefficients actually represent the contribution of bands '
of frequency centered about the sixth and eighth
harmonics. The percentage bandwidths for the sixth and
eighth harmonics computed after application of a Hanning
window may be shown to be 33 and 25 percent respectively,
for any level (Blackman and Tukey. 1959). It should be
noted that each set of Fourier coefficients is independent
and therefore the power spectra estimates computed from
those sets are independent. While 32 consecutive points
are required to compute a set of Fourier coefficients for
r---
41
B. Implementation
Four arrays of length 32 are used to store the
factors by which the data values are multiplied as shown
in equations (5-2a) through (5-2d). The functions
represented by these coefficients are shown in Figure 9.
An index register for each level counts the number of data
points contributing to each set of coefficients and serves
as an index for the stored sine and cosin_e arrays.
A new data point at any level will always be
produced on an "even" cycle (see Figure 6). At that time,
the value of that point is multiplied by the appropriate
coefficients from the "cosine6" and "sine6" coefficient
arrays ~nd the result summed to the Fourier coefficient
accumulators. Similar processing of the point using the
"cosine8" and "sine8" arrays will be deferred _until the
next octd" cycle since it is known that the data (in the a
register) will not be affected by "odd processing. The
ability to distribute the multiplications for calculating
the Fourier coefficients evenly over all points at a given
level contributes a great deal to the efficient use of the
processor by cascade decimation and signficantly reduces
the worst case computing time for incoming data points,
__.:___A
- -- 42
nTT] [ cos15
2I [ l-cos15 6 nTT"]
-2I [1-cos-
mr] [-s1n-
. 6nTT"J -
16 16
-
2I [I-cos 16
mr] [-smffi
. Bmr] --
Fic;ure 9 - Functions Stored in Sine and Cosine Arrays
.1.
43
I
~
- ,,, --
--.
~\~~-"'.?~- ""'~~ 7~.:cS'~ ~~~
...........
.,~-~-
44
at these levels.
c. Interlacing
interlacing records.
Note in Figure 10 that the contribution of data
points near either end of record is very small. In order
- - ----- -.., a n
\ I
I 45
/
I \
'' '' ' /
''
/
'' /<,/ /< /
I/
/
\ I '
'
/ '\
\
\ '
I I
I
'' /
\
'' /
/
' /
'' I \
t \ /
I
\
\
J
. >-
\
' ><' /
/
/
'' v I
0 <t
z ::: /'
0 I
/
'' / '\ CJ)
>- (/) w l ) ......
Q)
0:: ~ a.. I
<t
0::
~
-
0
z a..
.:ic: CJ)
'' \
)(
/
/
' .....x / >
Q)
.....:i
a.. (/')
"O / '' /
'\ "O
.... I Q)
CD
a:: lJ... w
Cil
0
l)
I
I
' I IO
l)
......
<1 0 Q)
\ I I ....
0:: '\.
\ / / Q)
8.... 'x /
......
V'
.
c:
,_.
/ \ 0
'+-<
/
''' /
/
'\ .
/
/ '' CJ)
c:
I
I
I \
IO
CJ)
/ '' IO
.... I "O
....
(
\
/
\
I
H
....
cu
.......
'' \
,..<../
/
I
' ' ) <' / u
Q)
0
/ '\.
' I
....
, I
/
'' I \
0::
'' /
::l
0 ' \ 8....
'' \ /
/
/ r.....
\
\
I I
I .8CJ)
/
' -..../ c:
0
......
cu /
' ')(
''
/
/
/'
'\ H
ro
....
.... I I
::l I ' \
......
~z t
O'I
..... \ I I ......
~
/
I '
'' \
/
/
'' / cu
~~a /
/
'' /
' >< /
~ ....
:l
z ?:: 0:: I
/
'
I '' '\ I
' \) O'I
.....
...
wo o I I I
a.. a.. u \
w w I
0 C\J a:: \
/
\
'x ' >/ I / ......
z f1") ' ' ..... / /
/
)<''
'\
I
I
/
'I \
I
I '' I \
I
I \ I
\
'' ' /
/ ''
/<
/
/
' '/>, /
/
//
I ', '\
' \
I '
I
\ !
i
I
I'
I
I
'
I
j
I
l
46
48
system being dealt with has five channels (see Figure 2).
(E E*)
x x r
= (E xr Exr + Ex1. Ex1.) (6-la)
(E E*) = (E E + E .E .) (6-lb)
x y r yr xr x1 y 1
_,_.
50
(E H*)
x x r
= (H E
xr xr
+ E .H .)
x1 x 1
(6-ld)
(E H*).=(E .H - E H .) (6-le) .~
x x i x1 x r xr x1
(H H*)
y z r
= (H H
zr yr
+ H .H .)
y1 z1
(6-lf)
(H H*).
y z i
= (H .H
y1 zr
- H H .)
yr z1
(6-lg)
(H H*)
z z r
= (H H
zr zr
+ H .H .)
21 21
( 6-1 h)
may be shown that the scatter between the true spectra and
---- -- - ----- - - - -- - - - -- - - - - - - - - - - - - - - - - -
"
"1,
51
Cl Cl Cl Cl
C7I 0 0 0 0 0 0
0 0 0 0
Cl.> Cl.> E Cl.>
.... E Cl.> E Cl.>
.... E
.... E .... ....
>< >< . ;:... ;:... >< )( ;:... ;:... N N ''
; I ~
w w w w I I I I I I
Hx real
. * (Hx Hy )r (Hx Hz )r *
(Hx Hx)
Hx i mag (Hx Hy )i (Hx Hz li
Hy reo I (Hy Hz * )r
(Hy Hy *)
Hy (Hy Hz*li
Hz r ea I )c
,_.-
(Hz Hz* )
Hz i m cg
i
'
.
.I
.'
i
1
'I
i I
' I
: I
Ll
r
-
. .... , .... ,__:~-- . - - . ... ;
~- ...............
~
-~~~1--~~~~~-~
~ ~-z.;..!...=- .-.-.:- --~---.......-~~=-'--='<
---~f...,,,.
- .... .. '""""'""""'"""""~"""
52
,;
iii
"Jt '
:;\
d j
'! 'l
!
d-
" .
I
.I
,1
l
i I
;I
'l
:;
i
. - -- - - - - -- -- - - - - -- - - -
: I
j
'i
,I
memory. A high speed mini-cartridge tape drive,
alpha-numeric display, and thermal printer are part of the
calculator. Also included in the system are
read-only-memory (ROM) modules for advanced programming,
general and extended I/O, string variable processing, and
plotter control. A 16 bit parallel interface for data
input from the digitizer, and an X-Y digital plotter ror
53
~ -.;. ,,., - ~ -.
~,,_ _.
.;.i.
____ ,.,.__..._ --
---:-. _ .,_,._
.-
the auto and cross power spectra for the appropriate level
as discussed in section VI-B. It also checks a flag which
'
keys on the HP-9825 which has previously been programmed i -
i
!
to set the appropriate flag to terminate the run.
II
~ desired. If on site determination of tentative resitivity
.I
:I
profiles , is desired, another program executed on the !
1 i
i'. l
HP-9825 removes the response due to the sensors and analog
system, then uses the corrected spectra to compute the
apparent resistivity curves which may then be inverted to
\
the main program and one showing how auto and cross
spectra estimates are computed for any level are included
56
, - ------ - -- - - - -
------- ----- - -
.-
~ ~- ...... ~.... ....
57
'
I
flags.
L 6nn 8nn
Sn= l: cos 3h zi + cos 32 x 2 1 (8-1)
i=o
58
. . . . -- .
-! - ...,~. :-,"':!'- ~_._t;.l.-~~~~ =i.~ ...~ - ...--01-_ .::.::..=-c:....~~ :.: -"' ---.=~ ~~~ - -~~-.;.;,;,;.;;._.--.:...__---...;......,......,-.;..
59
TABLE 1
-- 9 6n7T 8n7T
Data Sequence Sn = 2: cos
32
x2 i + cos
32
x2 i
i =O
No.
Lev. # - Sample Theoretical Auto Calculated Auto
Freq. Harm. # Points Spectra ExEx* Spectra ExEx*
.50000 0-8 2203 1. 000000 1.000010
.37500 0-6 2203 1. 000000 1.000074
.25000 1-8 1101 1.000000 1. 000016
.18750 1-6 1101 1. 000000 1.000099
.12500 2-8 550 1.000000 1.000014
.09375 2-6 550 1. 000000 1 . 000092
.06250 3-8 274 1. 000000 1.002539
. 04688 3-6 274 1.000000 1.000097
.03125 4-8 136 1. 000000 1.003177
. 02344 4-6 136 1.000000 1.000092
.01563 5*-8 136 1.000000 1. 003174
.01172 5*-6 136 1. 000000 0.9998655
.00781 6*-8 67 1. 000000 1. 003168
. 00586 6*-6 67 1.000000 0.9998837
.00391 7*-8 33 1.000000 1.002926
00293 7*-6 33 1. 000000 0.9994385
00195 8*-8 16 1.000000 1.002945
00146 8*-6 16 1.000000 0.9995602
00098 9*-8 7 1.000000 1.002874
.00073 9*-6 7 1.000000 0.9994499
t
.
.
.
[ --- __ __
.., ..,,...__.-.:'-... ---- --~......... -
F
iI'
.l
60 iiu
"
" -<,; -
' ~
.\
61
j \
i :i
completion of the r"ield work using the large central '
I
I
'j
'
f
analyzes one frequency at a time. The audio MT (AMT) rf '
i
'
system operates under control of a Hewlett-Packard 9810
programmable calculator,a predecessor of the HP-9825.
Data from .001465 Hz to .5 Hz was analyzed in
real time using cascade decimation implemented on the
HP-9825. Nine levels of decimation were used with the
upper five levels interlaced. Table 1 shows the resulting
frequency distribution. Data from Level 9 was generally
discarded because an insufficient number or samples could
~be acquired in the allotted time to obtain the statistical
confidence desired for the spectral estimates. It is
interesting to note that by computing the spectra in the
field, the data volume was reduced to such a degree that
all of the data acquired from a 50 MT site survey could be
recorded on one DClOOA mini-datacartridge.
- Because 0.5 second is the maximum sample rate at
which real time cascade decimation will operate on the
HP-9825. data in the range from .46875 to 5.0 Hz was
l
~~V'""'"'-~-'~
.......-...--_.u,,,...,
:of.
.,
- l
'
63
estimates.
If no Hanning window was applied to the data
64
.11719 11,12,13 33 2
.14648 15,16,17 25 2
. 2 0508 19-23 28 3
. . .
. . .
. . . .
7.6953 6 04-8 94 25 101
10.000 896-1152 25 129
.11719 6-6 33 2
.15625 6-8 25 2
.23438 5-6 33 4
3125 0 5-8 25 4
. . . .
. . . .
. . . .
7. 5 000 0-6 33 128
10.000 0-8 25 128
f .. 'f.,:" '. ;1~
f .-
I I I I
horrn .
2 10 11 12 13 14 15 16 17 18 19 no.__...
I---
r _
Band 1
33 % BW
I
..
Band 2
2~: BW
______j
1
I \ / \ .
I
I I I
harm .
2 10 II 12 13 14 15 16 17 18 19
no. - - -
'
CJ) i
U1
!..
1' ~
lt'
I :;
1l' ~
1..
r
R- - -..~-~----- -
-- --,,-
'
66
As indicated in Table 2, as
, ..
67
L :2: log
2
(li '\
64 ./
(8-2)
to be
FFT: 2N to 4N (8-3)
I
Cascade Decimation:
I
128 + 12 x integer [ log::i ( :
4
) + 1 - J+ 8!
where I is the number of levels which are interlaced and s
represents a vanishingly small number.
i'
!
i' '
I:;
interlaced, the average number of multiplications per
point drops to less than 10.5. For the example cited
(8-4)
Cascade Decimation:
L 3 + L 2
4+ L; n 2: n
n=l L-I+l
J:
--- -------
70
71
c. Future Work
~~ :*1 '
72
I
on the concepts developed, and pitfalls
. ._ -~ .... _ ~-
.. .
-"!'""";ec--- .,_.,_. . .
--~.:~
'~
!t,._A;;;-.::1~,~~~~iiiiliiiiH
73
APPENDIX l
A) Main Program
B) Computation of Power Spectra Estimates
C) Interrupt Service Program
D) Decimation Control for Levels 4 and Higher
E) Odd Processing
F) Even Processing
G) Computation of 6th Harmonic
H) Computation of 8th Harmonic
I) Computation of 6th at Interlaced Levels
J) Computation of 8th at Interlaced Levels
i : _j,
l ........l.c:_ '
74
MAIN
PROGRAM
SET ALLOWABLE NO .
OF .S ATURATIONS
CALCULATE
FREQUENCY ARRAY
ENTER FILTER
SETTINGS
BEGIN RUN -
ENABLE INTERRUPT
NO
YES
YES
COMPUTE AUTO AND
CROSS SPECTRA FOR
HIGHEST PRIORITY
LEVEL COMPLETED
~ ~1.'::0::---'"'l-".r~:'."'"'.:"-" " _,_..,., __ --~ -
_.,. ~--t-~~7~-:~~.~~-- - . . .--"'-...: .: --- ..:;e...
75
NORMALIZE SPECTRA
FOR NO. SAMPLES AND
DEC I MATOR RESPONSE
ENTER COMMENTS
FILTER SETTINGS,
SAMPLE PERIOD,
COMMENTS, ANO
ALL AUTO AND
CROSS SPECTRA
PRINT OUT NO
SPECTRA?
YES
PRINT SPECTRA
END
76
COMPUTE AUTO
AND CROSS POWER
SPECTRA FOR LEV EL L
NO
IS SATURATION
COUNT FOR LEVEL L
YES ..
> ALLOWABLE ?
~,
I N IT I A LIZ E STORAGE
~~ .
I NIT! AL IZE STORAGE
INDEX ( 1-N ) INDEX ( 1- N )
FOR EACH OF THE 5
AUTO AND 10 CROSS
J,
FOR EACH OF THE 5
AUTO AND 10 CROSS .-..
POWER SPECTRA FOR
+--- POWER SPECTRA FOR
THE 6 HARMONIC THE 8 HARMONIC
AT LEVEL L AT LEVEL L
+
COMPUTE REAL PART
~
COMPUTE REAL PART
OF SPECTRA - PR. OF SPECTRA - PR.
.
S6LN + PR -+ S6LN
INCREMENT
SSLN+ PN -
INCREMENT
SS LN
N N
IS THIS AN~
AUTO SPECTRA ?
+
IS THIS AN
AUTO SPECTRA
~S
?
COMPUTE !MAG . PART
OF SPECTRA - Pr.
NO .Jr
COMPUTE IMAG. PART
OF SPEC TR A - Pr.
NO
INCREMENT
N
INCREMENT
N
,,,.-
L...
....
, Ir
.
NEXT .
~ NEXT .
-.
SPECTRA SPECTRA
..
.f
L ,
INCREMENT SAMPLE CT. AT
END ,.- LEVEL L ; RESET S.!ITURATION
COUNTER ; CLEAR FLAG
--
~--
' ~
I'
i
'
!
77
INTERRUPT
SERVICE
'
4
DIGITIZER INCREMENT
SATURATION COUNT
AT ALL LEVELS
NO
CYCLE
0 OR 2? YES
(1,8,8)
NO
..
-- YES
CYCLE
i ?
(i , 2 ,B)
NO
- - - - --- -------
78
DECIMATE
LEVEL 2: 4
NEXT LEVEL
( L+I- L )
NO
YES
SET FLAG L- I TO
11
NE E OS ODD PROC.''
YES
NO YES
PROCESS I NG ?
NO NO
YES
COMPUTE COMPUTE COMPUTE COMPUTE
8 th FOR 8th 6th 5th FOR
INTERLACE COE FFS. COE FFS. INTERLACE
INCREMENT
DECIMATION COUNT
NO
YES
END
79
BL +TEMP- BL BL + TEMP - AL
CL-t 4.87100924-xTEMP-BL
TEMP-CL
SET FLAG L TO
SET FLAG L TO
" NEW POINT READY
"NEEDS EVEN PROC."
AT LEVELL"
END END
YES
YES
NO
Ali:. Ss(IL)-tIMsL
- - ! MsL
NEXT CHANNEL
END
COMPUTE FOURIER
COEFFS. FOR 8th HARMON IC
AT LEVEL L
YES FLAGLSTILL
SET (SPECTRA NOTYET
DONE ) OR IL NOT YET
RESET BY "sth"?
NO
IS THIS THE
RECORD ?
YES
SET FLAG L TO
SIGNIFY THAT A
SET OF COEFFS .
IS READY FOR
COMPUTATION OF
POWER SPECTRA
- REsL
NEXT CHANNEL
END
... ~-,,,..~
.
..' .. ...
......~~~~~\
. .~ ~ "
;'" ~-
~ . -
- .,,.... __
-.-
......._
- . ~
oW''"
-
.......
- - -
'
:Zm1, -- --- -
-
82
COMPUTE FOURIER
COEFFS . FOR 6 tti HAR MON IC
AT INTERLACED LEVEL L
IS THIS THE
YES H
,, ~
FIRST POINT IN
RECORD ?
Ii
i ~-
NO
1
RESET INDEX IL=! I NC REMENT INDEX IL l
ALxC 6 (16)
+ RE~L - - R E~L
AL x Ss ( 16)
1 .i
+ IM6L -IM6L
I '
I '
! :.
NEXT CHANNEL NEXT CHANNEL NEXT CHANNEL
END
83
COMPUTE FOURIER
COEFFS. FOR 9th HARMONIC
AT INTERLACED LEVEL L
END
84
APPENDIX 2
Program DECIMATE
- -- - ---~~---------~-....--~---._..-~-~-----------...._---
, . .,.,... '"'::.,,._~--:v .. "" ~ '41':' ... ""--:.. -. -
........ ~~~---"'!"' ~'"''-!!:"-' ....rf"~~.,_,.
. .... ,,.-~. ' _t_ -
"?'" - ~:~::::_----- ~- - - ------
85
Simple Variables
A Total number of levels
B Level at which interlacing begins
c Cha nne 1 index
D Number of decimations
I Index for computing spectra
J Index for computing spectra
L Level index in interrupt service routine
M Level index in main program
N Index for storing spectra
Q File number
R X azimuth
s Y azimuth
T Temporary storage
u Temporary storage
v Temporary storage
w Index for processing of upper levels
x X line length
y Y line length
z Sample period
String Variables
SS (20) Site name - run number
D$ (10) Date
cs (60) Comments
R$ (5,10) Filter settings and gains
- -,
--1<,":.1'":-<'~i"- :v-~"""r:"" _,. ...~...;.... -;."""",,. ~
- --~ _ _ .,., ~:::..... --~~~-:!~' _._, .
.. Ji~. .. ~--
86
Subscripted Variables
"C!EC:IMATE 14: I
(1:
6 .. - 10 / 7 7 ll: \'
i:: nt
b E o. r- i n ::i
"i:;nt..:r
( - i,
11-1 .-. ., " I .,.
1: 9-:.p,;5-:+E: l ( ~~1 l .:: < ( ~J .
= ,~ 1 q
F: :.t C5 ; 1 0 J ' 0 ' F: ' : ; ' C0 t1 T ' ; r d b ( 0 ) -:. T 1.. 1 r- t 1 i:, 1 , " E ::< " '
2 0 : i f T # 1 0 ; ::i t i:1 F.:! U J
" n o c h o. n ::i .: " :::: 4 : .: n t E t: t .: r
1
'
:~:
11
1
j : sPc ; P r t 21: ff:t ~, "o.l li:1 1...1 E. ./ f i 1 t E' t- /
MT-[IECIMP.TE"; . e d :.:. 1J t u t- o t i o n ;. - ::i 1J. i n :::. " ' F.'. $ [ 2 J ;
:=. r:i c 2 ; .; n t e n t E 11
Ly If 'r. t t
I/ L '/
; II =
II
t o b i: ~ i n
1 II
r un " ;
~
_____ .....,.._~ .. -~
- -----......--------------- ----
,,,__ __,.~::; ---- ~...-..-. ' -< ... ~--
~ ~- , ~~ .__,_...___ :.";. ~ . - ; ~
88
:~: ~: 1 k d ; c. f =3 1 3 ; 53: .J[M,IJI[M, 72: for- l_l;::O to 4
oni 2~"point."; _I J - I [ M, I J .J [ M' 7 :::: : J i:. i:1::;. ( 2 11 l_I G
[i [ !_I
i:: i r 2 .J J + Z [ M, H J .:. Z Lt1 , ) +I d
4 0 : " ~- 1 -~ s c o. r1 " : i f tn; tH1H~ 74: DCUJ::inf21rUG
f 1 " 5 ; 5 H1 ; ::i t o 60 : " 1J. u t u ::. r. 1 E' 1:. II : t~ :i +._l-t._1
11 :=: f) E" ct t4 O. II
i: >:: t ._1 ; n e :::: t I ; 7 5 : [I [ l_I J c :1 :::. ( 2 11' UH
41 : f 1 "=3 f: ; t. ~ t-1 ;
i f '/ [ MJ + 1 . ;. './ CMJ ) +f::.:.f<
=9 t o .. :=. r-, E c t r 1J. '' 6 1 : f f'I \ ::: ) f 4 0 ' 7 (, : D [ UJ ::. i n f 2 ff i_I H
42: if fl::i7;7-tM; ::< ' f 3 . 0 ~ ::< ' f :~: 0 ' ) +L -:>L
::i t 0 " :::. p i: c t ( (1, "
:.:: ' f 3 0 ' >:: ' f 2 0 ' 7 7 : n e ::< t U
4 ::: : i ff 1 ::i t: ; ::: -:.- M; ::< ' f :2 0 ' ::< ' f 2 . 0 ' 7 ::: : E f ( I I + ._I ._I ) .:. E ;
>:: , f2 .o, ::-::, f 1.c1,
11 11
=3 t o :=. P E c t r 1J. F f ( f::: f::: + L L ) -:+ F ;
4 4 ; i f f 1 ::< '? ; b E' i: r.:. ::<' f 1. 0 nE::<t F
; '? -+ r1 ; :;i t ( P E C. t
1 " :::.
5 2 :
11
= f:' E c t r rJ. " : - 4-:t-[I [2J; 1-:rE-:t-F; t. t" k i
s:~:: if' T CMJ >l_f CMJ r 1J. d ::: 4 : r- c. f C! , U U J ,
; 0 -:. '.:: [ MJ _,. T ct'1J ; 67: for P=O to A * *
\=' ( J ' ~J [ J ' ;:.: [ i- J '
cf::i M;3t.o "fl=::i:::. 6 ::: : 1 / ::: E -:. M; 1 / \' [ + J ' z [* J ' ::: $ '
c 11 n ::: F 4- t4 [I $ ' c $ ) F.: $ ' C! ' p ' ::; '
54: i..;.~i;for I=l 6 j : i f 11'1 [ F' ] =(1 ; : : ~ \' ' z
to s;for .J=I for T=1 to 25; ::: S : t r k 0 ; r e '"' .
t. (I 5 CHY [F' ' TJ -tZ [P' ::: 6 : f) t'" t t~ 0 . ~ 0 f'
II
55: G[M, ..JJG[M, TJ; nE::<t T; =:it, o F: e i:. r:i r d :=. " ; :.:. r.i c ;
IJ+H[M,1JH[M, . " r e ,,., i:1 1.,.1 e " f :::: d o;for U=O
.J J + \' [ M, H J . ;. 'r' [ M, 70: for T=l to t o A ; r. r t. \.' [ UJ ;
HJ 25; (MM/\/ [F'J) Y [p n E >:: t. l_I ; :=. P C 2
5 6.: I Ct'1 , ._I J I [ r1 ~ 1
) TJ-:t"r' [p, TJ; (MM/ ::: 7 : r.:a rt F i 1 E
11
IJ +.J [M, IJ ._I [fol, \' [F'J) Z [p, TJ ~z [p ti l.l f'; b E t" = " ' C ; :=. P C
._IJ +Z EM, MJ -tZ EM' , TJ; ne;<t T .-,
,:.
tiJ ; tH 1 -:. ti 7 1 : " r i:: '"' o ~,.i i: " : ~3 ..:. I 8 ::: : d ::. P " CCi tJT
5 7 : i f I =.J ; ~ t o ~J~~<-:rL; :3,..' 32 . " t o P r i nt t o. '"'
" 11 u t. i:1 ::. P e i:. " 2lP-:+G;4/32/2lF'~ ~. pi: c.t ro."; :;:. tP
5 ::: : H U1 , I J G [ M' H f: 9 : P r t " F.: o. 1...1
..JJ-C[M, IJH[M, S f: .: 1:. t r o. r-i i:.
11
; : :.
89
~
'? 1 : :=. p i:. f' : -: d 5 ; ; 107 : 1.,lt. (. 2' 1; 125: ni::::::t c;1..:.F[ ""
~
r.-rt "fr.::1=", ;:-1r- 2;irEt L J ; r E t. ~
;:.::[TJ;flt, 6 1 iJ ::: : 11
1' 2 1 ..:. L ; 12 6 : t. t ~'1 \:
II :
i; H :
'3 2 : f 0 ( \ = 1 1
t 0 C 11 ' E" 1._.1 E n ~ ; (. l 1 127 : i ;: f 1"L; ~
2 5 ; r:i r- r. Z [ T ' 11 1
.' J ; ' 6 r. h ' ; 2 ..:. L ..:. [I -Hl ; -
ell 'odd';cll
9 :3 : . f ::< d 5 ; ::. p c ':::th'
1 2 ::: :
::ito
i f '.:; [ L J = 1 ;
"t. nori'"1
..
. -- 1 = 'j : c l 1 ' f l 0. ::i :::. ' 1 2 9 : 1 -~ E [ L J -t ~:; [ L J ~ i -
; i,.1 t C 2 i 1 ; E i t" 2 ; ;for C=1 to 5;
"
11
94: fer 'i.1 =1 to i r i: t A (L, CJ-:.T; TO [lJ-t :I
2 5 ; r. rt '/ CT , '/J ; 11 0 : II f 1 (1. ~ :=. 4-:. LII :
G [ L , CJ ; T F' [1 J ..:. H [
n e ::< t.. '.,.' 11 l ~ " :=. t (\. t" t,. f 1 :::i " : \I
if FCL-1J=2i
L' CJ .I
11
95: t"i t:' / t T 1;:0: O..:;.I [L,CJ-t._i[ Ii
'3 t. : .- + :- .
..: i.. r ~
::; t. Ci " ;:. .;: t .,! f l ::i " L, CJ; ne::<t C:; iI
' I
112 : II f 1 ~ 1 0 0 p i U :
r E t. II
f L=A;ri::t i::;: 1 : " t 11 c r 1"1 " : E CL I!
1 1 :~: : L + 1 -1 L ; ::.i t C1 J + 1 -t E [ L J ..:. U ; f o 1
". " ::;. t 0. t" t t' 1 :;! "
11 4 : . " ::;. E r '..' f 1 <; " : 0
C=l r.o s;A[L, .!
,I
'? ::: : " '-' o i n t " : f o t CJ -tT; T!J CUJ +G CL, i
C=l t o 5; if ..:.F [L-U CJ-:>G[L,CJ 'I
I
o. b :=. f r d b ( 2 ) ..:. A [ 0 , 115: if FCLJ=l; 1 :;: 2 : T F' [ IJ :i + H [ L ' 'I
j
c J ) >2 0 4 6 ; :=. f ::i 11 e 11 'e.,.ii::n'; ::it o CJ -:. H CL , C J ; n i: ::-:: t. I
I
C; r E t I
t 1 ::;11 ; c f '? 11 ; 116: ell 'cdd'; i
f o r T ::: 0 t : A ; if L>=E:icll l 3 .:t : i f f l ::i L o t !11I
T [TJ +1-:;.T [TJ; ~ :::t.hlnt .' ; ::it.o '.:: [ L J =0 ; r .: t i !
~ t. c
II ,I
l.
II
L>=E:;cll '6thin J+I [L,CJ-:.I [L,
;
' !
II 1
1 ~i 1: i f i.1 ::: l ; ';1 t 0 t ' j :;i t 0 " d Ci t"I E' " C J ; T F: [ UJ + ._I [ L ; I
1: 1, 2 11 11'3: c.11 '6th' C J -'> .J [ L , C J ; n .: :ct. II
12~:1: donE": [I+ c ; t" E' t
11
- - - - - - - - - - - --- ... - - - - -
!
I
90 !
i
II i I i
i :!
I 11
142: L-E:.:;.\I 15J: TO UJ .;i.t-J ['/'
1 4 ::;: : f o r C= 1 i:. 1:1
CJ ; T F.: [ 1J -:+ti [ \ 1
, 11 1
~;;AcL~cJ-:.r;r c c1 C J ; n i:: ::: t C ; r i:: t I 11 I '
' I
I ,:_
: ::
' c] i f ( E [ LJ -t U :i =-1 t ;
1 4 4 : T F' [ 1 t.-+JJJ + ~ t o " :: I n t 1 ,: _ :=. t
11 l i
L CL , CJ +L [ L , CJ ;
T Cl [ uJ + f: : [ 1/ ' c J .:;. f::: [ 156: for C=l to 1!
'/ , C J ; T F' [ UJ + L [ ' / ' 5; A [L_, CJ-tTi TC! CU
CJ-!-L['./~CJ l 11
+ 1 6 J + M CL , CJ H1 [ L I '!
145: ne : -: t c; ri:t j 1!
14 t. : 11
t, I n t l 1J. :.:. t :: :
' c]
1 5 7 : T F.'. [ l_I + 1 6 J + iI
I
I!
I I
1:
i f f l =:< L ; d :=. r. tJ [ L , C J .:;. tl [ L ' C J ; ~ i:
I
" L 0 ::; T ::: \' t ~ C " ; T C! [ l_I ] + i'1 [ \I ' c ] "'* i'1 [
11
! 1:
=- t, p '.,.'' c]
1 4 7 : L - E: ~ \:1
1. 4 ::: : f 0 ~ c 1 t Ci =
1 5 ::: : T F'. [ UJ + t-l [ './ '
(: ] -;. tj [ \1 ' CJ ; t"i E ::< t.
1
l
r
1
5; A CL, CJ .:.T; TO[ :;:
~~ J + f- [ L , CJ -:i- G [ L ~ 159 : 11
::: I n t 1 o. :=. t " :
CJ; TF' L :23 +L CL~ ::. f ::i L ; (H ::; [ L J ; L - 11
CJ .:;. r1 [ L) CJ Ii
I I
1 4 '3 : T IJ [ 1 t J + f:: [ \I ' 1 t 0 : f Ci t c =1 t.. 0 i
!
!
j
CJ ~ t< [ ~ CJ ; T P [ 1 6
1
/ 5; A [L, CJ-;.T; TC1 [3 I I
(
I
____
_. .. .. - - ---~ ~- - - -~~--- ~....,_-......,.,......---- r
.--
- . -. __
;:..~ ~: :~ ,,~;.~~Ji~
.,_.
. ..............
.
.,.._~
. ~~~:-(~:
BIBLIOGRAPHY I!
II
Bailey, R.C., -}!Inversion of the Geomagnetic Induction I
I
91
92