Professional Documents
Culture Documents
of Engineers
Hydrologic Engineering Center
HEC-4
Monthly Streamflow Simulation
User's Manual
February 1971
The public reporting burden for this collection of information is estimated to average 1 hour per response, including the time for reviewing instructions, searching
existing data sources, gathering and maintaining the data needed, and completing and reviewing the collection of information. Send comments regarding this
burden estimate or any other aspect of this collection of information, including suggestions for reducing this burden, to the Department of Defense, Executive
Services and Communications Directorate (0704-0188). Respondents should be aware that notwithstanding any other provision of law, no person shall be
subject to any penalty for failing to comply with a collection of information if it does not display a currently valid OMB control number.
PLEASE DO NOT RETURN YOUR FORM TO THE ABOVE ORGANIZATION.
1. REPORT DATE (DD-MM-YYYY) 2. REPORT TYPE 3. DATES COVERED (From - To)
February 1971 Computer Program Documentation
4. TITLE AND SUBTITLE 5a. CONTRACT NUMBER
HEC-4
Monthly Streamflow Simulation 5b. GRANT NUMBER
14. ABSTRACT
This program will analyze monthly streamflows at a number of interrelated stations to determine their statistical
characteristics and will generate a sequence of hypothetical streamflows of any desired length having those characteristics.
The program will reconstitute missing streamflows on the basis of concurrent flows observed at other location and will
obtain maximum and minimum quantities for each month and for specified durations in the recorded, reconstituted and
generated flows. HEC-4 will also use the generalized simulation model for generating monthly streamflows at ungaged
locations based on regional studies. There are many options for using the program for various related purposes, and the
program can be used for other variables such as rainfall, evaporation, and water requirements, alone or in combination.
Users Manual
February 1971
(530) 756-1104
(530) 756-8250 FAX
www.hec.usace.army.mil CPD-4
10 December 1984
Conditions of Use
The following conditions regulate the use of computer programs developed by the Hydrologic
Engineering Center (HEC), Corps of Engineers, Department of the Army.
1. The computer programs are furnished by the Government and are accepted and used by the
recipient individual or group entity with the express understanding that the United States
Government makes no warranties, expressed or implied, concerning the accuracy, completeness,
reliability, usability, or suitability for any particular purpose of the information or data contained
in the programs, or furnished in connection therewith, and that the United States Government
shall be under no liability whatsoever to any individual or group entity by reason of any use
made thereof.
2. The programs belong to the United States Government. Therefore, the recipient agrees
neither to assert any proprietary rights thereto nor to represent the programs to anyone as other
than Government programs.
3. The recipient may impose fees on clients only for ordinary charges for applying and
modifying these programs.
4. Should the recipient make any modifications to the program(s), the HEC must be informed
as to the nature and extent of those modifications. Recipients who modify HEC computer
programs assume all responsibility for problems arising from, or related to, those modifications.
User support from the HEC to third part recipients will only be provided after the second party
demonstrates that program difficulties were not caused by their modifications.
5. This "Conditions of Use" statement shall be furnished to all third parties that receive copies
of HEC programs from the recipient. Third party recipients must be notified that they will not
receive routine program updates, correction notices, and other program services from the HEC
unless they obtain the program(s) directly from the HEC.
6. All documents and reports conveying information obtained as a result of the use of the
program(s) by the recipient, or others, will acknowledge the Hydrologic Engineering Center,
Corps of Engineers, Department of the Army, as the origin of the program(s).
Paragraph
ORLGSB OF PBOd;W
mapom OF PROGRAM
DESCRIPTIOE OF
METHODS OF C-TIOX
m
O m
OPERATING INSTPIUCTIO~S
I 1 E F r n I O H S OF !!xmls
PROPOSED FUTWlE DEVELB
This program was ?re pared i n The Hydro1.ogi.c Engineering Center, Corps
of Engineers. Up-to-date information and copies of source statement cards
f o r various types of computers can be obtained from the Center upon request
by Government and cooperating agencies. Programs a r e furnished by t h e
Government and are a c c e ~ t e dand used by t h e r e c i p i e n t upon t h e express under-
staad.ing t h a t t h e United S t a t e s Government makes no warranties, express.or
implied, concerning t h e accuracy, completeness , re3.iabi l i t y , u s a b i l i t y , o r
s u i t a b i l i t y f o r any p a r t i c u l a r purpose of the informati on a r ~ dd a t a contained
i n t h e programs o r furnished i n connection %herewith, and t h e United S t a t e s
shall. be under no l i a b i l i t y whatsoever t o any person by reason of any use
made thereof.
i.n which :
N = Length of record
R = Linear correlat.i.on coef f i.cient
N
2
i' i-1 l , m L-l.,m / z 2
x i ,m C xi-1 ,m
m=l m=l n=l
(N-1
)/(R-2) }Q (lc)
i n which :
x = X-X
-
e ., 'IF ,there a r e i n s u f 2'i.cient s~mul.'taneousobservations of any pa1.r of
v ~z7,l-l.es ~ i t o cornpute a reo_:~l.redc o r r e l a t i o n cae.ffici.ent, t h a t value must b e
e s ' t : i ~ a t e d . Each d.ssi.n,y ,value i s estj..mated by. examining i t s r e l a t i o n s h i p
%c re:Lated pai.rs or" values I n t h e c u r r e n t and preced3.n.g moa?.th by use
of t h e fol:l.uwi.rAgPo-mu1.a using f., 5 , and k subscrl.pts t o i n d i c a t e arariab:les
used 2.n .t'rle gross cc;rrel.a'tion,
k'i
.
i When 'the s e t of flows i s coqpl.ete, all. correl.a.tion matrices should
be consistent except ,for -'crur?czti.on e r r o r s i n the conputer, si.nce the d a t a
arrays a r e ~0rnpl.etp. Any consislency of matri.ces obtained i n t h i s m m e r
o r of matrices read i n t o t h e coqputer wi.11. resu:l:t i n det;errmi.natfon coeff:icients
s e a t e r than '1.0. I f .this occurs, corlsistency of each c o r r e l a t i o n m t r i x i s
-
a.ssured by Pl.rs't t e s t i n g a-1.1 combi.nations of t r i 2 d . s of correlati.on coe:f
f i c i e n t s i n t h e current a.nd preceding month f o r a l l calendar months using
e q u ~ t f o n11 and. r a i s i n g t h e I m ~ e s tof t h e three c0effici.en.t~t o 0btei.n
a consis.tent trliad. The , t e s t of consistency of each compl.ete n a t r i . : ~lis
made by recomputi.ng ,the mu1tip.le correl.at:ion coeffi.ciezt. If thi.s valse
:is greater .than 1..O, f u r t h e r ad,jus.tment i s required. Such fur.ther a d j u s t -
merit i s obtained by introciuci.ng e. coeffi.ci.ent, success:ivel.y smaller by
0.2, on the r a d i c a l i.n equation 11. and repeating a l i ,-briar?.consis,tency
t e s t s u n t i l d l ma:tr:i.ces a r e consistent. If'consistency i.s not reached,
coef'ficients i n each incons:i.stent m a t ~ i xare moved t a ~ a r dt h e aversge
value of d.1coeff:icients i n t h a t matrix u n t i l consistency .i.s reached.
SECTION B
SECTION C
R = correlation coefficient.
where :
K = normdl s'tmdard deviate
,t = Pearson Type I11 standard, deviate
g = skew coefl:icient
Rij
-- %
A s each successive t h i r d variable with established c o r r e l a t i o n c o e f f i c i e n t s
i s found, the upper l i m i t of' R i j i s constrained t o the lowest of' a l l upper
l i m i t s computed, and t h e l m e r l i m i t i s constrained t o t h e highest of all
such l o v e r l i m i t s computed. 'When $he e n t i r e matrix has been searched the
c o r r e l a t i o n c o e f f i c i e n t is estimated as the average of these two constrained
'Limits. If Lhis element i.s above t h e main diagonal, the value i s a l s o
entered f o r t h e element syn-metrically across t h e main dianonal. The
search f o r f u r t h e r missing c o r r e l a t i o n coefEicients i s then conti.llu;?cl,
SECTION M
7 EXHIBIT 1
di.viation exceeds 0.3) .
'Phis simply prevents ob t a i n i n g unreasonably
extreme values due t o sampling e r r o r s . It i s a moderation of t h e
extrapolation r a t h e r than an abrupt truncation.
SECTION Q
A routine f o r p r o j e c t i n g h i s t o r i c a l sequences i n t o t h e f u t u r e i s
employed here. Values of Q P W (previous month's deviate ) f o r each
s t a t i o n is determined as the transform of t h e flow f o r t h e month p r e -
ceding t h e f i r s t ; month s p e c i f i e d (by input data) to be generated. The
variable NA i s computed f o r the subscript of 'J t h a t conforms t o the
f i r s t month of projected flows. I f the projected f ' . L a ~ routine i s not
t o be used, the computer i s next s e t ilp t o generate k?o years of flows,
a t the end of which s y n t h e t i c sequences w i l l have a v i r t u a l l y random
start.
I n the multi:pas s operation, s t a t i 03s a r e i.d.extified and d.1. neces -
sary s ' t a t i s t i c s a r e contained i.n the order needed on tape ISTAT. I:n any
pass a f t e r t h e first, f 1 . a ~ generated.
~ i.n e g r l i e r passes f o r t h e saqe
period ( t h e same sequence of d a t a ) must be read from tape IQTA-I, and t h i s
tape must be rewound, before ea.ch pass i n order t o p e r ~ i ta compl.ete
seerch. In any sequence a f t e r the f i r s t , t h e preced:ing E 3 . a ~f o r t h e
f i . r s t month t o be generated is the l a s t fl.ow i.n ,the >receding sequence
,for t h a t s'tation, and t h e s e a r e saved i.n t h e @TAF array Por mu.t.tipass
operation. If t h e mult;ipass feature i.s not used., a l l necessary s t a t i . s t i c s
and Elms :for generzit-ing are i.n memory.
A = RNGEN (IX)
3
Constant t h r e e (C3) = 1./2.
SIZE OF
--- - ---
INTEGER ----.-
COI\I'STALJTS
COIPUTER - WORD C1 --P.
C2 C3 .--- ----
GE 200 S e r i e s 19 1027 52[+287 0.1907348631:-05
GE 400 S e r i e s 23 4099 8388607 0,11320929011-06
IBM 360 S e r i e s 31 65539 2147453647 O.4G 566128713-09
IBX 7840 and 35 262147 34359738367 0.29L0383046E-10
7098 S e r i e s II II
UMIVAC 1108
CDC 6000 S e r i e s 48 16777219 281474976710655 0.3552713678E-14
April H*
Q S + ~ Q 3 ' 3 F ~ $ ~ ~ D 6 N ~ h O D W
~ ~ ~ R J o ~ ~ ~ B\ ~Q Q c . P
D. o
u ~
) ~; 0P
a s ~ m ~ r - a r n d rsn d w adorn
e e e a e e e s e e s o e c o o
4 8 - cU B
0 (P e
OdlU
4 4 4
*
0 (D b
ig
ornu'
6 6 U Y
NNN
e e a
O.G~fr-C3d;cF-OP-3%J\JGdriJN~ncr
mmbinr-r-rcr-ON 4 . 4 m m em00 e
T T ~ F T ~ F P N .
~-O
do mmn
Q O e 6 0 0 0 4 * 8 B 4 e m e *
I I .-i
~ ~ N - t " ~ C T m C 3 ( Z I m o ~ m o . ~ , ~ ~ ~ m
0 ' 3 0 ' a G Z a N ( 3 H 4 4 e N e % J & Q 0
mrn.r~ximr?.-,mo fo.jru t n a ~
e a a e 0 a e m e e c e e e e e
4
T t ST DATA 723-X6-L234C -
MIJI~THLV STiitLtMFLUW S I W l l L A T I D N U O V 197" -
STCrlLARI: AtqALYS I S AN3 G E N E G A T ILIN
WHNIHUW VOLUMES
ST A 1c 1l 12 1 2 3 4 5 6 7 8 9 1-MU b-MO 54-140 &WHO
107 r! 1 2 17 37 14 12 4 1 1 ? 0 o 99999999
A10 3 3 3 t 15 34 48 56 36 11 5 3 3 36 2515
bl1 11 12 13 13 37 116 165 366 386 1110 2 tl 13 11 19b 99999999
996 14 17 24 45 95 187 226 469 473 136 33 15 14 239 99999995
ST& ITEM i? 11 12 1 2 3 4 5 b 7 8 9
107 t4EQN -112 e283 e820 1.465 1.410 1.862 1.395 1.177 -834 a395 e000 -.316
S T D DEV .513 .1CB e597 e433 .I57 e263 0214 aC87 -192 el73 -162 a415
SKEM 1.041 -1e3fi8 be491 -e627 -10653 -1.073 -1.728 el44 a348 -be489 -1.441 -.I22
INCRHT .l~ .IC; .112 .39 . 26 .a1 .20 -15 .LO * 13 1c
. . 1 ~
\I E A R S 3 3 3 3 3 3 3 3 3 3 3 3
w 11c WtAN
R S T 0 DkV
W SKE k
P, IMCRMT
YEAAS
11: MEAM
STD DtV
SKiir
W
tzd INCRYT
Pd YEARS
t3
68
d
4
I
I-
Z
a
I
a
U
U.
in
-
%
ti!
4
c)
I
u
PAGE 2 EXRIBIT 4
3 L t 3 LIL
= o e + L , e a o - + I- due4r>aa.ju
s a m u m
-
4 4 4 ~ 1 3
8
.*
C
C
* 0 .+.
4 -
r
0 r_
7
0
d X ~ o . ~ > X c r P P
I - - e e l - r e .
'p
4l.O
P
P 0 0 C 0 0 OM9rn.nN * W * & * 9
4 mmmm
I)
-J c.:
O d
.-,
P 3 I-
m.2
>
GENERATED FLOdS F O R P E F : J D i
STA Y ~ A R In 1: 12 1 2 3 4 5 b 7 a 9 TOTAL
8 1C7 6 C 1. 1 i5 16 77 34 18 7 3 1 1 174
td 10 7 7 Y L ' 145 lbt 35 79 2C 19 5 2 1 0 473
OI I(:7 8 C 1 6 43 26 o5 2~ 11 4 1 1 6 185
10 7 9 1 2 -2
- 2P 25 51 24 1, 3 L 1 0 145
107 1C 1 2 2C b1 23 115 33 13 tl 3 1 0 280
M I N I M U M VOLUYES
STA 10 11 12 I 2 3 4 5 6 7 a 9 1-MO 6-HO 54-MO AV HO
107 C- b P 15 16 51 20 11 3 1 1 G 0 8 1150
110 i 3 3 9 La 42 64 94 55 1i 6 4 2 33 2 2 16
111 9 1: 9 34 57 146 189 385 337 1C4 5C 26 9 163 8936
99 6 11 15 12 b3 100 261 275 492 395 '118 56 3G 11 223 12386
omm 0
Id* r
> >
u 4
mmw m tnom m
.... ....
a000
Ndrn-4
d
I
.+mmo
r-dP.4
r-.
0
.-
PAqE 7 EXHIBIT 4
6 - 4 ~ mom
d
PAGE 9
PAGE 18 EXHIBIT 4
-
*n
VJ
z
a
I-
ul
0.4
d d
- 4
Od
d d
44
.-
V)
w
u3
a
b
0d
rld
04
4.4
0
v
i3
\>
rn d - ,
.-I
W A X I A U M VCLUHES FBR P L k A G u f JF 5 Y E A R S O F SYNTHETIC FLUWS
ST& 1C 11 12 a 2 3 4 5 b 7 d 9 a-MO 6-WG 54-HJ AV
10 7 2 L 93 in1 29 133 42 19 11 3 1 2 a33 352 131a 22
Ilr! 14 7 23 41 32 143 140 237 267 111 47 13 267 9.31 3180 54
B
I"
&
.
4-4- QM*
d m m 96 9 4
'0
In *a)C'bQ* m
vmVII-9 m N
nJmP(4'4 d
emf- o
X * P I
ru
00" tn
r - * N O
?-Nco-4
O D . .
I
+M'S u
m d w o
* d & M
f-. d C. e e e e
.-a 0 N corn
N O I
.4
earn
do
4e
m N L
tnm
4 rn
wmm
d 4
PAGE 1% EXRIBIT 4
OCLn rye.4
aD Iuuwln O'lcaDd
O * U ~ a m r n ~
0 0 . 0 e . 0 .
- 4 - 4 4 -4
PAGE 16 EXHIBIT 4
PAGE 18 EXHIBIT 4
=zLic(P ;9
m-9nrm
"
(r,d*Ln
e e e e
din
c
m w o
rn&Q mmlnr-
LnQ r-w-fa
t'l . * 0 *
r a w
Z>3.*<7 z>zc-
-7 u 'A.z. Y -1 & id I:
I., c? Y TC <
r "2 C1 k.i -.-
Ll! T" :< 2'
r-L\
C 2 > C <:
L- c-: + C
lz CO
QNO
0 l r Y ) d
WrQLnnJ
. B O D
.-I 4
a0.0 GrQe
m VIlnin* lno'inlc
IcN;tS N d - 0
. . m o o m . .
zouo
r 5 N O
s m c
O N 9 9
W N N M M N C N
0.e. .*.a
YIOL'I met-
dMiYL0 ,r@.)cnI
p c r C C & Pl)rO(C
0 0 . . 0 0 . .
B d
0 0- --w
e-a cr- rccr:
d Cc. L'G-
4 5 me.
PAGE 28 EXHIBIT 4
=rO tCI3
d .cC =a
d (PO O'CF
-
0
+
.
0 0
CI(?
00.
8 0
--a
cot-
C O P
e e
.
4
r 4 0 Sir
4
. rCC mm
c (PO (DIP
v e . O
PAGE 22 EXHIBIT 4
Betain Q.-8(hP
=we. Z:
LI ma- n
BDPsN tB=m
No' m
rd
a
-?CmCbl= UtGM
e CP- .ca
d P)lr d
Q O O O O O Q O O O O 4 a - + d d d d + d ~ s *
- 4 brrrc..r~rar*o.*d.-,--'
mdd*dd.-I-,d*-+ rndM.-aMdd.=--ad-$
PAGE 23 EXBIBIT 4
TcST DATA 3-Xt-L2340
',lSI\ITHLY 5 T R E A Y F L O c l 1970
- S 7l 2MULAT I GlU - NOV
S T A T 1 S T l C S FURNlSHtD
GEYERATED F L O d S FOR P E 4 1 U O ?
z
-P MAXIHUM VOLOYES FOR P c h I O D 1 D F ''1 Y E A R S OF SYNTHETLC F L O d S
ST A 1P 11 12 1 2 3 4 5 6
107 8 3 237 157 44 111 3d 19 10
11C' 26 d 29 66 29 79 129 224 267
111 114 5C li4 id1 LC3 271 373 6 9 ~ 991
MIMIHUH VOLUHES
STA 10 1L 12
107 3 1 2
110 2 3 4
11 1 9 13 15
DEFINITIONS - 723-X6-I2540
AC1 - Alienation c o e f f i c i e n t f o r s t a t i o n 1
AC2 - Alienation coefficient f o r station 2
AC3 - Alienation c o e f f i c i e n t f o r s t a t i o n 3
AD 3 - Plus sign i n d i c a t e s value smaller than upstream sum by
tandem t e s t
ADJl -
Equal sign i n d i c a t e s value adjusted by tandem t e s t
ALCFT(I,K) -Alienationcoefficl.entarrag
ALOG -
Computer l i b r a r y function of n a t u r a l logm-ithm
ANLCG -
Number of logarithms
ANYRS -
Number of years of record
AV(I,K) -
Mean logarithm
AVG(I,K) -
Average of t h e generated deviates
AVGQ ( I 1 - Average monthly flow f o r a s t a t i o n
AW(I 1 -
Average logarithm of flow f o r minimum 3 consecutive months
AW(I 1 -
Average logarithm of flow f o r maximum 3 consecutive months
B(L) -
Beta c o e f f i c i e n t
BETA(I,K,I.) -
Beta c o e f f i c i e n t f o r generation equation
BLANK -
Blank space
CROUT -
Program subroutine t o solve s i m l t a n e o u s equations
-
CSTAC(K)[,K) Coefficient by which flows a r e multi.plied before adding i n
a combination
DABS -
Computer l i b r a r y function of absolute value of double precision
number
DQ(I,K) -
Increment of flow
DTRMC -
Determination ccxffic Lent
E -
Letter E i n d i c a t e s estimated value
FAC -
Temporary f a c t o r
I -
Index f o r calendar month
IA - Indicator i n column 1 of f i r s t card f o r each job
IANAL -
Indicator, p o s i t i v e value c a l l s f o r analysis
IENDF - End of f i l e indicator
IGNRL -
Indicator, + 2 c a l l s f o r computing generalized s t a t i s t i c s
and + 1 o r t 2 c a l l s f o r using generalized s t a t i s t i c s f o r
generating flows
I ~ ( I ) - Month sequence number of last morrth of 3 d r i e s t consecutive
months
I W H -
Calendar month number f o r f i r s t month of water year
IMX(I) - Month sequence number of last month of 3 wettest consecutive
months
INDC -
Transfer i n d i c a t o r
IP -
Month number f o r preceding month
IPASS -
Sequence number of pass (subset of s t a t i o n s )
I PCHQ -
Indicator, p o s i t i v e value c a l l s f o r writing discharges on tap?
IPCHS - Indicator, p o s i t i v e value c a l l s f o r punching st=i;istics
IQ(I 1 - Fixed-point conversion of flow M u e s
IQTAY - T a p number f o r s t o r i n g flows
IilCO%J - Indicator, positive value c a l l s f o r flow r e c o n s t i t u t i o n .
ISKZ - Positive value c a l l s f o r varying flow increment (DQ)t o
make skew zero.
- Sequence number of upstream s t a t i o n f o r tandem t e s t
- Station number
- Station nuinber i n a combination
- Temporary s t a t i o n number
- Statl.on sequence number f o r a l l p s s e s
- Tape number f o r s t o r i n g s t a t i s t i c s
- Station nuniber of downstream tandem s t a t i o n
- Statlon number of upstream tandem s t a t i o n
- Station number of i n d e ~ e n d e n ts t a t i o n f o r consistences t e s t
ISI"P(Lj - Station number of dependent s t a t t o n f o r consistences t e s t
ITEMP - Temporary variable
ITMP - Temporary variable
ITWP - Temporary variable
ITP - Temporasy variable
ITBRS - Transfer indicator
IX - Temporary v a r i a t i o n of I
IKX - Argument f o r random number function
IYR - Number of c m e n - t yeap
IYRA - F i r s t year of d a t a
IYRPJ - Yew of start of flow pro j e c t i ~ n
J - Index f o r year
JA - Sequence number of proJection year
JT~(L - Matrix column number
JTP - Matrix column number
JK - Temporary w i a t ion of J
J
m MP - Temporary v a r i a t i o n of J
K - Index f o r s t a t i o n
m - Dimension l i m i t f o r number of consecutive months
KPASS - Dimension l i m i t f o r number of passes
Xs'rA - Dimension l i m i t f o r t o t & number of s t a t i o n s
KSTAC , -
(aK) Index number of s t a t i o n i n a combination
rnAP - Dimension l i m i t f o r t o t a l number of s t a t i o n s
I
a - Tempx-ary v a r i a t i o n of K or combination sequence
KYR - Dimension l i m i t f o r number of consecutive years
L- - Index f o r r e l a t e d s t a t i o n
LA - Temporary v a r i a t i o n of' L
LQTAP - Mmber of records up t o present position on t a p IQTAP
LSI'AT - Number of records up t o present position on t a p ISTAT
LTMF(L) - Matrix row number
LTP - M t r f x raw number
LTRa - Letter A
LX - Temporary v a r i a t i o n of L
LYRPJ - Last year of each projection
M - S e r i a l number of month
MA - Sequence number of month sf projected flow
MO(I) - Calendar month number
MPASS - Temporary counter f o r number of p s s e s
MTHFJ - Calendar month of start of each projection
MXRCS - Number of years i n each pericd f o r which maximum and minimum
recorded and reconstituted flows are desired
N - S e r i a l number of period of flows
NC - Counter t o prevent continuous looping
NCA - Counter t o prevent continuous looping
NCAB(I,K,L) - Number of values and cross products used t o compute c o r r e l a t i o n
coefficients
NCB - Transfer indicator
NCCMB - Number of combinations of s t a t i o n s max. and min. q u a n t i t i e s
a r e t o be computed
NCSI'Y - Number of consistency t e s t s
NINDP - Number of independent variables in regression study
NJ - Number of years i n computation sequence
NLOG(I,K) - Number of logarithms used t o compte frequency s t a t i s t i c s
NMNMX - Number of months following dry season and preceding wet season
NMXMN - Number of months following wet season and preceding dry season
NPASS - Total, number of passes i n job
NPROJ - Number of projections of f'uture flows from present conditions
NQ - Counter f o r number of flows
NQTAP - Total number of records saved on tape IQTAP
N~MX(L) - Number of upstream s t a t i o n s i n tandem t e s t
NSTA - Number of s t a t i o n s i n analysis
IsTAA - NSTA + 1
N D A C (IM) - Number of s t a t i o n s i n a cm-bination
NSTAT - Total number of records saved on tape ISTAT
NSTAX - NSTA + RSTA
NSTNP(I ) - Number of s t a t i o n s i n a p a r t i c u l a s pass
NSrX - Number of s t a t i o n s i n current pass t h a t occurred i n preceding
pas ses
NSrXX - NSTX + 1
N ~ ( K - Number of s t a t i o n s upstream from a s t g t i o n f o r tandem t e s t
NTNDM - Number of tandem t e s t s
WAR - Total number of variable i n regression study
NYMXG - Number of years of generated flows i n each period f o r which
maximum and minimum flows are desired
NYRG - Total number of years of generated flows
NYRS - Number of y e a s of recorded flows
Q(M,K) - Monthly flow
~ () 1 -Monthly flow
WN(I,K) -Minimum flow
QPREV(I -Flow f o r previous month
&R(M,K) -Identification symbol
Q ~ A (PI - Temporary storage of QFREV
R (K,L) -Correlation c o e f f i c i e n t i n a given matrix
RA(I,K,L)
RAV (K,L) --Correlation c o e f f i c i e n t
Average c o r r e l a t i o n coefficient f o r 1 2 calenzar months
RMAX - Maximum consistent correlation coefficient
RMIN - Minimum consistent correlation coefficient
RNGEN ( IXX ) - Program random number function
R1 - Correlation coefficient being tested
R2 - Correlation coefficient being tested
R3 - Correlation coefficient being tested
~J)(I,K> - Standard devaition of logariths for calendar month
sDAV(K) - Average standard deviation for 12 consecutive months
SDV(I,K) - Standard devi~tionof the generated deviates
-(I,K) - Skew coefficient of logarithms for calendar month
SMQ( J,K) - M~~ or minimum rlow for mouth or duration
SW(I,K,L) - Sum ~f squares of first variable
S&B(I,K,L) - Sum of squares of sec~ndvariable
SUM - Average correlation coefficient of matrix
~ ( I , K , L ) - Sum of first variable
SUMB(I,K,L) - Sum of second variable
T - Large positive constant
TEM? - Tempormy variable
TMP - Temporary varl.able
TMPA - Temporary variable
Trn - Temporary variable
TMPP - Temporary variable
TP - Ternlaormy variable
~(1) - Value of independent variable in regression equation
~ )
X I N (I - Iteration vzlue for flow increment
XPAB(I,K,L) - Sum sf cross products of' first a.nd second variables
C 7 2 3 - ~ 6 - L 2 3 4 6 MPN?WLV *T4tApf2~?,, ~ I ~ ~ ; L & s I pU ~ ~ c t OF ~ F r U S E :970
Ch
C
* * t * * *
LIRPAEY Ft!YCflchs A L Q ~ , D k 4 3
PPDGPAM SUE@CJLlTl!l C R t ~ 7 ~ R h ~ f r ; S E E CnnnEN7S 1 3 R N G E N --
, * * h s a * * * * * * i O d 2
9hC I ~ ( I ) = S ~ G ( I + I S ~ K ) + . ~
67C ~ * ~ I T E ( b r 0 ~ 0 1 1 S f A ( K ~ l1 r Q I I l p X = ~ , 1 ~ ~
CE
7 - * * * * * C3wPUTE F R E O U E ~ C YS T A T I S T I C S * * * * * *
r a I T E (6,R90)
R P O F n E M A ? ( / 2 l H FREQUENCY S T A T X S T I C S )
i < P I T E [ 6 , 8 S O ) ( h f O C l ) II=! r I 2 ;
890 F U K r A T (/14R STA ITEM,L~I 1118)
C H I S S I h C FLOW P F E t F B L N G FIRST H E C O R D MONTH
on ~ O OK S ~ I S T Y YI N S T I
90C O l l p K ) = T
I P C n N=O
XTFf4P n N 3 T A
D n 1180 K = ~ ~ I T E * P
I F IJTEnP,GT,NSTA) G O TC l i e 0
IF(K,CE.N3Tx] GO TO 9 5 2
9 i c nn 920 1=1,1a
TEMP=KLOG!I~X~
Dn(f , K ) = D ~ C I , ~ ) * . O I / ~ E H P
IF(nQ(ir<l.LT*.l) DO(11K)nrl
ZF~~~IN(IIK).LT.O.) DQ(I~KI=DQ~~,K)-BMIH~~,K)
Nod
930 nn Q U O YR!, i2
AV(I,K)3fla
:n(I,K)=?1.
S!tE!4(IlK)=0.
TH9lN
X ~ ~ C Q ~ ~ ) ~ ( O ~ ( ~ ~ X ) + O ~ ~ X % ~ I ~ K I : / ( ~ ~ ~ ~ T ~ ~ P )
sao C ~ K P ~ N U E
9
&
'
3 z=1
On 9 7 0 Jnt , N y R 3
O i l 9 6 0 Isl,12
:r=rr+1
IF(fl(M,K) . E 9 a = I a l 6 0 TO 935
C 2Ef'LACE F L 0 4 A R R A Y WITH L O G A H R A Y
T E W P = ~ L ~ C ( ~ ~ ~ ~ ~ K ~ * ~ ~ C I ~ I ~ ~ ~ ~ ~ ' J O ~ S ~ ~ ~
RIMIKIZTEHP
IF(K.LE.NSTX) G O 70 9 6 0
C 5 U H , SnUARE3, AhO C U B E 3
4V(7,K)ZAV(10K)+TEflP
SD(I,K)=F~CT,XI+TE~~P*TEI*P
SKE~~I~~I=~KE~(I,X)~TEYP*~E'~P*~E~P
G O 4 0 900
C *iX33IhG FLOW3 EGUIPEO TO T
9fC 2 t N . K l a T
I?COY=l
9bC C ~ ~ ~ T I Y U E
970 C Q h T I f f U E
Ie(K,LE.h3T:O C q 1 0 1180
I NDCZO
Oil lono ?=l,li?
YEu~=~LO~(I,K)
fF(PEYP.iT.3.1GO 1 0 1120
T1'P+AV tTaK1
I F C $ D ( X , ! < ) ,LE.O.I GO TD 4 P Q
SDITIK)=SllCIs~)**.S
I F [ s ~ ( I , K ; . ~ ~ . , 0 3 f l S ) G U T C 990
s u ~ r ( ~ , x ) = ( T i ; ~ ? * ~ E ~ t P ~ S ~ E ~ ( x , % l ~ . 3 . ~ ? ]
l / I T E N P , ( T E ? f J ~ 1. ) w ( T . L t F * 2 . ) 2 9 o ( I , i 0 * * 3 1
I F ( s K E M ( ~ .Li,[:,l)aOQ.S~EU(I,K)aG3.aL
~~~J INOC=I
I F t . ? x E , 4 ( 1 1 K ) .GT.3.] SKE&(I,K)=3a
I F ( ~ ~ x E I J I I.l.T.-'3*]
~xI 9Xf-b ( I , ! o = m 3 .
G O ?rl 1500
9a0 40CT,K)=Oe
9 4 C SrEw(r,Kl=O.
1 O n G CnKTINUE
N=h+i
I F ( ~ . G T . 1 1 G o T Q 1060
d ~ ~ ~ ~ ( b! s e? ~l ( K~ ) l(, A ~~ (] l a ! O ~ ~ = l , i z ]
i o i c F ~ R M A T( / l ~ , ~ ~ , a t r V E S ~l ,% ~ 6 , 3 1
d ~ l y E [ b el b a O ] ( $ f l ( I , K ) r I = 1 # 1 2 )
1 0 2 C FnriqAT (79,7;1,9Tl! DEv, 1 2 F P s 3 !
: ~ a l r ~ r ~ , t e 3t s0x1~ c ( ? , ~ ) , 1 = 1 , i 2 1
1030 F7RHiT ( l b ~ r J ~ S ~ E % ~ l 2 P A . 3 1
raITE(6, IOCO) (DP(I,W),I=l112)
lnOc F w M 4 T ( b ~ , h ~ X k C ~ ~ ? , F 7 . 2 , 1 1 F B . t )
+ a r : ~ r s , l a s n l ;hLcc(I,x) , 1 = 1 , 1 2 1
1 O S C FnHP!dT (7Y,5HYEAR9,1218)
lob&' IF(N.GE.Ia) Gfl 70 1 1 8 0
rrtI!mc.L,~.oj G O 72 1 1 8 ~
C THE F C L L f l i q I N G R C c T I k E H I L L A D J c S T T H E ~ S C U E ~ ~TC
E ~ T
c ' 7 9 ~TO O d T l f N Z E S O KEN
C C H A N G E W E P C L L W I N G 3 1 A T TO ISJ(Z=l T O ACTIVATE
TSK720
IF(TSKZ.LZ.0) G O TO 1180
I T P ~ - 1t
bn 1110 I a l t l i ?
i4ZTTP+X
DP l o e a j = l t ? ~ Y ! ? 3
'lsH+\? iuzi
Z F ( ~ ~ ( N , K ) . E O . T )60 TO 1078 3 422
ft4:xn(bl,l0 1423
11 ( H #K)xIO.**TMP rnfJQ(11K) 1424
~n ~n 1 0 8 0 1425
107C G l V , K ) n - 1 . 1426
!OAO C ~ ~ T I K L J E 1427
TFWPSSKE ( 1~ , ~ ) 1428
iF(TEMP.CT. ( - 9 1 ) a A ~ f l . T E M P ~ L T . ~ Gl lO TO 1429
IF(TFMP) 1090~1110~1100 1430
lOqC ~ ~ o [ ~ , x ) a f ~ O ( I , K ) * 2 , 103 1
cn T O i i r o 1432
llOC b ? ( I l ~ ) = u O ( t l K ) ~ ~ I f ~ ~ C H ( X ) 1433
1110 C n h r ~ ~ u E 1434
GP To 930 1 U35
C * * * * * DELETE STATICY3 WITH LESS T H A h 3 Y E A R S OF D A T A * * * * * * 1436
1 1 2 0 *dulTE(bt 1 1 3 0 ) TSTA(K1 !4 3 7
113C FPRWAT (/UY 3 T A , I B , 2 8 R DELETED, I N S U F ~ X C S E N T O A T & ) 1438000
hlqTArRgT4=! 1439
NSTAASV~TA+I i 460
NST&X=;J$TA+NSTA 1441
IF(K.Gt.YSTAlGG T 0 1180 1442
C PEDIJCE SUHSCRIPTS OF S U B S E Q U E N T TATI IONS 1443 '
o n 1170 KX=K,NSTA 1444
I d T n ( K X ) = X S T A( K X + ~ I 144s
ti= J iaa6
Dn 1150 J ' l r f J Y R 9 1447
n n 1140 131,ia 1448
'1=Fc+i 1 s4q
iific nrn,~x)=gc~,u%+l) 1450
ilSc CPbYLCUE 1451
Q O 1160 3=lr11? 1452
JvfN:TIKx)=fl*4Ih(J,Kx+1) 1453
?:I O G ( T , K : O = ~ ~ L O G ( I I K W ~ ) 1450
116C O0(TrK~)=Di3lIrKX+i) 1455
117C Cnh.TtNUE 1456
cfl r n 9 1 0 1457
1 l P C C!IE'TINIIC 1458
ITQbJSt0 1a 5 9
IF(TPCD~.LE.O) G D 10 1 3 7 0 1460
CF* a n * n n AUJUSTfAENT OF FREGUENCY 3 T A T I 3 T J C S 70 L O N G TERM * * * * 1461
on i lso 1 = 1 , 1 2 1u52
nn I S J ~K = ~ , N S T A 1463
Dn 1190 L=lcNSTAX 1464
xcn~(:,~,i.)=n lais
$itrid (I,K,L]'O. 14bb
SI;f'411,K1Ll~Oe 1467
on ( I , K ~ L I = O . 1 UCB
sot3~ ~ , K I L I ~ O . 1469
XPAn(TIK,L)=O. 1470
R4(lIK,L)=-4, lG71
1190 C P h T l N t J E 1472
D O 1220 N=~,NSTA 1473
XY=L+~ 1474
=!I t 1475
DP 1 2 ? 0 J = l , N Y h 3 1496
D O 12!0 I = i r 1 2 I477
1.1 = r + 1 1478
TFMOzQ ( U r K) 1479
IF(TSr~P.EQ.Tl GO TO I210 1580
~ f 1
l 200 L = K X , ~ S T A Z iuai
~w:~-ksTs 1 4 82
IF ( L x , L T . I ) T~~=IJ(:~,L) 1483
IF(LY.GT.O) THP=OO~=~,LXI i ~ e u
~ F ( T M P , E ~ ~ . Y5
) 0 Y @ 12CO 1485
scrn(I,KIL)=NChH(1,K,I.)+~ 1988
SI~*A(IIKILI=~~J~A(I,K~I.)+~EMP 14e?
S~~~R(X,K:L)=OU~~~(I,K~I)+TPP 1486
~~&~~~K~L)=SO~(IIK,L)*~EKP*TEMP 1489
S ~ E ~ I ~ K , L ) ~ S ~ ~ ~ ( I , K , L ) + T ~ P * T M P 1490
X P A H ~ I , ~ , L I = X P ~ Q ( ~ , ~ , L ~ + T E I ~ ~ ~ ~ 1891
IF[L.GT.NBTA) G O TO 1200 1092
Y~Ps=$uHR~I,K,Lx)/THPO
A~(?,KJ=T~PA+CAV(I,L~~*TPF~~)*H~(J,K,LXI,THF
YC(~,K)~S~A(~IKILX)+~~O(IILX)~S~~~(~~K~LX~)*~A(I~K~LX]**~*~M~
12f'C CflkTINUE
C ADJUST STANDARD O E V T A T I O K S F n R COYSISTENCY
I F ( ~ C S T Y , L E . O I G O TO 1 3 1 0
C T R I I . J S F E ~FRfM 101 f
j290 0 n 1 3 3 0 L X = ! ,NCSTY
K=!STX ( L Y )
L=I$TY [LX)
UO 1 3 2 0 131112
TFPP=[AVCI,K)-A~[~,L~~/~.
!F[Av(I,K).CY.AV(I~L)~ GC TO 1300
TEt'F=TEUP+SD(ItK)
IF(SO(I,L) . L T * T E V P ) GO T o 1310
TF~'P=sD(IIK)*~?~-TEMP
IF~~ ' TO EMP) ~ 1 3 tI
0 ~I
1 3L
2 0 , 1)310
-
t360 TErP=TFFP+SO(I,Y)
IF[5n(I,L).0TmTEfiP) GC T O 1 3 1 6
TFFn=SD(I,Kl*2. TEbP
IF(so(x,L)~GE.TECPI GG 70 1320
131C s~(~,L)=TEHP
i32C Cj74TIHUE
133C CflLTINUE
~F[ITSNS.GY.O) G @ TO a 8 2 0
(30C I F ( T h O C . L E . O , ~ K D . ~ C S T Y e L E . O ) G O 10 1370
4QtTE(br 1350)
(350 F ? ~ 4 5 ~ ( / 3 9 + F4 R E R L ~ E N C YS T d T I 3 I I C S AFTER A D J u ~ T H E N T S)
!!?1tE(brB90) ( r U ( I ) r I = 1 1 1 2 )
DD 1 3 6 0 K = l r h S T 4
H Q ~ T E ~ ~ ~ ~ ~ ~ ~e (AV(IIK),I=I,I~)) I s T P [ K )
hQ!TEr5,ln2n) ($o(Iei(] e101,121
~~7TE(br1030)tSKE~(IcX),I=i,12)
k R I T E [ b , l O U n ) (CD(11K],1=1,12)
1360 COhTXNUE
CG * * *a * * TRANSFORM TO S T P b D A G D I Z E D ' J A R f A T E S * * * * * * * * * *
1370 93 1 4 2 0 K = i , t d S T A
Y I1
On 1 4 1 0 J = l r ; d Y R S
nn 1400 r=i,ra
?ltb+l
DP ( H , K ) s B L A N K
I ? ( Q [ V , K ) .ED,TfGO TD 14CO
I F ~ ! ~ D ( I , K ) ~ E o ~ O ~ I YGO I J1 3 9 0
~ C ~ ~ ~ K ) = ( F ( ? ~ ~ K ) - A V ~ S , K ) ) / S D ~ I , K )
C P E A R S C N T Y P E I11 TRANSFORM
I F ( R ~ E w C X , K I . E O ~ O ~ I G OTO l a 0 4
T?PPZm5*3KEU(S,K)*O(t4vK)+l.
TPC'Sl,
!F(TEVP,GE.O.)tU T O 1360
TFVPz-TEMP
'In 1540 Kztr~ST4 t 629
KY=X*l 1630
~ 3 1 1631
no J=! # V 7 K 9 1632
D O la70 1=:,i2 I b33
rtr+! 1634
TFHP=Q[N,X) 1635
1FITEHP.En.TIGG TO 1470 1536
3 0 1 4 6 0 L=KX#NSTAX 1637
C sLJ0SCUXPT3 E X C E E O I ~ J G h 3 T 6 RELATE 1 0 PRECEOING V i l h l H 163%
LXzL-NsTA 1639
IF ( L Y .LT. I ) T ~ P ' G c ~ ~ ~ L ) 1540
XU1,x.GT.O) T'lP=!J(H-\,by) 16411
~ F C T I ~ P . E R . Tto
I t13 1dbC 1642
C CIl;J\IT A t 4 0 I J S E ChLY R E c 9 H O E O P A I R S 1643
b ~ ~ ~ ~ ( ~ , ~ l ~ ) t b ~ ~ ~ ( r , ~ ~ ) + ~ 1644
S~~~A(I,K,L)=~'J~~~IIK,~.)*TEPP \ 605
~~J~~(I,K,L)=~~Y~(I,K,I,)+T)~P 1646
3Q& (I,K,L)=3"A (r,K,L]+TEPPtTE?tP 1h47
Q n s [I,X,L)=JCJD(I,X,C)+T~P*TNP 1608
XPAR(X,x,L)=%PPY ( I , K , L I * T E M P Z T M P i6U9
IFCL.GT.NSTA) G O 70 lObC t h5O
~:CJB(X,L,YI=NCA~~(II%IL) ISSI
~ ~ ~ K A ( I , L ~ K I = ~ ~ ~ ~ ( ~ , K , L ) 1652
SUP~(~,L,KIJSU;~O(T,K,L) 1653
3qA (IrLDK)=S[lij fI,K,Ll \65U
sns ( T , L , K ) = ~ o A (x,x,L) 1655
X ~ A ~ ~ I I ~ L I X ) = X ~ A ~ ( I , U I L J !bfb
1 4 1 0 CnCTXNUE !$ 5 7
147C tnh?lN!JE 1558
1 4 9 0 CnNTTNtJE 1b S 9
C * * * * * COkfPIJTE C O R R E L A T I O N C u E F F I C I E S T J * * * * r * * a z * r 1609
Qd 1 5 3 0 I X l r 1 2 lhhl
90 1 5 2 0 L=KY.NSTAX 16ht
LY=L-NSTA 1663
I: E L I H I h A T E PAX23 R I I P LESS T h A S 3 YWS UATA i6bY
~ F C ~ C J B ( I I K , L ~ . L & , ~ ) G O T d 1510 T 665
TF#P=NCAHfI,K,L) 1b 6 b
T ~ P = ( J O A ( I ~ K , L ) ~ ~ l J ~ ~ ~ ~ I I X l L ) ~ 3 U ~ A ( X ~ ~ p b ~ ~ ~ E H
1667
~ l * ( ~ Q ~ ~ I l ~ p L J ~ 3 ~ ~ ~
1~ ~ , S , L ) * S E ~ ~ C I P K , L ) / T E ~ ~ P ] 1668
C E L T ~ I ~ A TPEA 1 9 3 ~ I T H ZERO Y A H I A h C E P R O O I J C T 1667
IF(TVP.LE.Oe] G O 70 1500 1670
TMPBnl. 1671
T~PA=XPID~I,K,L)-SU~'A~X~K~L?*~~JYR(I~K~L.)/TEMP 1672
C 9 E T A I k ALGEbq4IC SIGN 167 3
T C ( T % P A . L T ,o, 1 T M P R ~ - T P P R 674
TMPA=THPA*T~PA/TtjP lb75
:A ( t 1 K , L ) = T ' 4 P S r T M P h k 1 , 9 1675
ITP=I 1677
LA=I.X ibai
l49U lf=(snt s r ~ . l t P e ~ ~ ~ ~ ~ ~ O ~ . 3 ~ ~ I f Tf h ~( I ,~~ ~t L il ~) O os ~ 7 ~ 9 10 6 803 i
G'1 T O 1510 iOA4
156C Q A ( T I K , L l = O , 1685
1 5 1 6 ~ F ( L . G T . N S T A ) G O 1 0 1326 1586
*ACTvLsX)~2A(T~KpL) 1687
1520 C ~ > . T T N ~ J E t 683
1 5 3 C Cnl,TIUlJE IbAS
1560 CnbTXNLJE 1690
60 T n 2170 !fig1
155C ' \ a l T E ( 6 , \ 5 h O ) 1692
l56C F C I K M A T ( / l B H D A T A OUT C f O R D E R ) 1693
G f l TO 130 1594
cx * r ** *
READ C O R ~ E L ~ T I C N
CPEFF~CIENTS a * * * * * * * * * + u * ,695
1 5 : ~ ~n 1633 $ = ~ D N S T J 1695
IF (K.EO.lIGO TO 1600 1697
ITP=N-1 1698
D t l 1590 L U I P I T P 1699
C C U R H E ~ TYONTk C ~ R P E L ~ ~ ~ O N l?CO
C ** CARD L ** 1701
~ c 4 n ( 5 , 7 0 1I T + P , I T E ~ P l CRA[TIK,L) ,I::t, 121 1702
~~'J~K,L)=P~(~,KILI 1703
IF[YGNKL.F~.!)J~Y~[X)~~THP 1704
I F ( I T I ~ P . N E . I S ~ A ~ K I T) P~ ~issn 1705
IF~I:EHP,!J:.ISIA(L)IGC TO 1450 1706
23 I S A O r a 1 1 1 2 1707
15aC R h ( r , L , K ) = R A ( I t X I L ) 1708
19qC C n h Y I N U E 1709
C P R E C E D I N G M O h l P CDRPELATTON 1710
1 6 0 0 LYZVSTAA 1711
f F IIGNRL.EQ.11 LXJNSTA*K 1712
Lb.=N3TAX 1713
I F I1GNRL.EQ.I) LASLX 1714
on 1 6 1 0 L.=LX,LA 1715
STP~I--~+sTA 1714
c *4 CARD K OR n ** 1717
~ E ~ O ( 5 r l ITOHPII ITEMP, ( R A ( I ~ K , L ],101 I $23 1718
I F (K.En,l) ISTA(Kl=STldP 1719
IF(~.E~.~)IST~(ITPI=I~E~P 1720
I F CIGNRLaEQ.1) RAV(KIK)~R~[I,K~L) 1721
I F ( X T ~ P . N E . I : ; T ~ ~ K ) ? C O f C 1550 1722
X F ( T T E H P 8 N E . 1 8 T ~ ( I T P l 190 1 0 1 5 5 0 1723-
1610 CPRTfNUE 17i?4
00 1629 I Z i r l 2 1725
lh2C 94(?,K,K)Bls 17 26
1 6 3 0 CnYTINUE 1727
C * * * * * * R E A D FREQUENCY S T A ~ J S ~ ~ r~ $e ! r t * r * * * * a * * * * 1728
3 0 1 6 0 0 K=IINSTA 1729
C n* CARD N t D 0 ** 1730
qFAI'(5,AO) ~TPI(AVCIIX)II=~~~~) 1731
IF(ITP,NE,YSTA f K ) ]GO TO 1 5 5 0 1732
C G E N E R A L I Z t O 3 T h 1 1 3 T I C 3 J N ONE C A R D PER 3 I A T I O N 1733
AV~YCK]=AV(lIK) 1734
Avt~Nf~)=av(t,K) 1735
SO~V(*)=AV(~~K) 1736
I? ~ ? = A V ~ ~ ~ K ) + . I 1737 *
~ t d Ix Y I = I T ~ P O ~ ~ ~ J ( I ~ ) 1738 *
ITU~=Jv(Sr~)+sl 1730*2*
I t 4 h ' ( ~=f l t Y P 0 h n f 129 2739 r
3F I X M X ( K ) .I~.ll XMX(X)=I"Y(K)+!~ 1700
I F (1!4!4(~).LT.l) I ~ Y ( K ) = I P ~ ( K ] + ~ ~ 1741
XF(XG!4RL.EQ.IIGD TO 1 6 4 0 1702
C * a CARD P *C 17a3
FEAP(~,~o~ITP~C~~(IIK)II=~~~~I 1701
IF(ITP.tiE.XSTA(N))GO TO 1550 1745
C *d CARD 3 ** 5796
EEA~(S,~C)ITP,(~XEN(III(~II=~,~~) 1747
IF(ITP.NEsX3T~(K))G0 1550 l7a8
C CARD 9 *r 1709
~ E A [ ~ ( ~ , ~ O ) I T (D0(1
PI tkj 1 ? = ! ~ 1 2 ) 1750
I F (TTP,tiE.ISTA[K) IGn 70 1550 1751
1 5 4 3 COhTIWUE if52
t T * 9 * r r * E B T I H A T E H I 3 3 I k G C F R H E L A T I O k CtJEFFXCIENT8 * * * * * 1753
1 6 5 0 I F ~IGNRL,EG. I I G O TO 3C2C 1754
I F t x 3 ~ n . ~ E . l l G U TO 2 3 1 0 1755
D l 1720 X a t r l 2 1756
IP=I-l 17 5 7
IF(7P8LT.llf~=i2 1738
C f l 1710 K=~INSTA 1759
ITP=Y+1 1760
Bn 1 7 4 0 L=ITPI~~STAX 1 761
C L A V O K C l I f i ~ E L A T I r N PC39:8LY VISSING 1762
IF(P~(I,K,L~ .GE. ("1.)) G O T Q 1700 1763
Q~Axtl. 1764
RHIrJ=*l. 1765
C L X sEA2CHES dLL S E L I T E O CORRELATLONS EXCEPT F O L L C b I N S ~ T H1 7 6 6
Dn 1 4 9 9 L X ~ ~ , N S T ~ ~ !767
YF[LK.EO.K)GO 7 9 1b90 1768
IF(L.EO.LX)G~ TO lb9O 1749
~ E M P = Rl A1 , ~ r L X ) 17 7 0
IF(L.LE.NJT~)&C T c 1bbO 1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1701
1782
i b a c I F CT~P+TEHP.LT.-~.O] GC t p l b 9 g 1783
T?dpA=( (1 . * T E H ~ * T E M P ) * ~ ~ , . T P P C ~) ~ ~ ) 1/84
I F (YYPA.LT.O.)TM~AUO, 1785
T'PP h=THPA**a5 1786
TMP!3=TMP*TEYP+THpA 1787
IF (TWPA.LT.RWAX)WMAX~T~P~ 1780
TWPB=T>~P~-TYPA-THPA 1769
IF ~ T H P S . G T . R ~ ~ I ~ ~ ~ R H I N ~ T H P B 1790
a690 C O K T I N U E 1791
C A V E R A G E 3HALLEST PAX AND LIRGES~ M f N COYZISTENT VALUE 1792
R~CZ~K~L]+(R!~AX+HY~N)*.~ 1993
I F ( C . C E . N S T A ) ~ A ( X ~ L ~ K ~ ~ R A ~ I# L~IY 1794
1/00 C n k T I N U E 1795
1716 C f l u T l N l ~ E 179b
1 7 2 ~CqkirxtiuE 1799
~g t n 2 3 1 3 1798
CJ * * * * TE3T FOR TR338 CUhSISTENCY * * * * * * * * * * * * * * a 1799
173C NCSaO 1600
17aC FAC=L. 1801
I;C4tNC4+$ i e02
I F (NCA.LT.HBTA*I~] 60 TC 1750 1803
#RIPECbr1840] 1a04
Gn TO $ 5 0 1805
145C N C 8 = 0 lOOb
Nc=n 1a07
176C I U E C Z O 1808
on 1930 1=1,t2 taa9
IP=I-l 1810
IF11Pe~TallXP=12 1811
c Y , L, A N D I.X S E A R C H ALL RELATEO TRO
I$ OF G O H R E L CCEFS I 6 12
00 iaao K~~INSTA !A13
IT'~P=K+~ 1814
Gn 1,910 L=XTMP,HSTAY 1815
I F [L.ER.NSTAX)GO TO 1 8 1 0 181b
L4rLmh'gTA 1817
~I=UA(I,K,L) 1818
ITP=L+~ 1819
On 1 3 0 0 ~ x = l t P ,M s T h X 1820
J?EMP=LX*NSTA 182 1
P~=RA(I#KILX) 1522
IF ( L . L E . N S T A ] R ~ ~ R A ( I V L ~ ~ X I 1823
C . BQT3 L AhD LY REPRESENT PRECEDING M O N T H 1824
JF(~.GT.NSTA)Q~=UA(:PIL.AIITE~~~) 1b 2 5
C R A I S E LnwEST CCEFF ICSEVT IF INCU~~XSTEN? 1826
A~l=C1.-9l*RI)*b,~ 1827
A c ~ =( I .=fi2*R2) **.5 1829
A C ? = ( t . - ~ 3 r R 3 ) t*.S 1829
f ~ [ 7 1 . ~ T . R 2 ) G O TO 1770 1830
IFCPl.GT.R3] G G T f l 1740 1831
?P~N=R~*R~-AC?*AC~*FAC 18.72
IF (PdrN.LT.-l .I f i s l N = s ! . t a33
IF(R~.GE.RUINI GO t n ieao 1630
Iunctl 1835
S A~ ~ , K , C ) = Q H X M 1836
IF (L.LE.NBTP) RA(Itb,K~~R~'IN 1837
t n T O 1800 1a38
1770 $F(Q?,GT,R3) 70 1 7 8 0 1 a34
R U ~ M ~ R ~ ~ ~ S ~ ~ C I * A C S * ~ A C l '?a0
f f ~ Q P ~ I N , L T ~.-I
! P~XY~-l, 1E41
IF(R~,GE.RHIN) G O TO i e a c 1842
INDCsi 1843
. - - - .-.-
-a z m uon
-
0 0 3 3 -7
a 0 - 8 % rPW
en o r Q O 1 4 . ~l -.n $4 UYOU o
U
a
LI 13
7-
( r C 2
6 4 c
2
I .-,
0. -s
..,
n
m
o (I
m(U4
2 -x
F
--
roc;-
-.
f W F r rF( 4 H r M 0 fU 0
"
U;0
?- W
HY
n N
U 3
N 7 - 4 C 4
~ m t - c r
~ t e t n m
4
I-
a
C O W
N d 4
O*W.L
W
.-
c-
U
i
u
.x
Cj u
0 4
cr n
-.. u
4
:c
U
d
-
CP 0-
.r.
4 4
M W
-2nd
-c
wc
a
2w
X -.
Lt
r
C . ~ Y ~ ;
w Z 9 w r
L
-
z
- H -
a - w
002 O'A
l&J - W
0 J
W
J
5%-
m e ?
+4
u c
w u n18
-1
0
c
Q
b
IC
zcc-cam
b O M
-0
+-i d 4
- o n ~ n n
J1:
H
J4?4crrt
0 9 3
aac
-7t-n
o
c
J-+-
E
c
m(l:
rocro
9 d W
Q
w o o r r c
d 3 ~ n n - Y
H C * *
J
0 0
87dm.aG
0
*.am=
-
00 m z t c t I I I I W W ~ ~ I I , I W n a ~ ~ a ' n a a e a a ~ w n -scar
o ZHO 2 o omom-- .-..-.&I - - d m n o * ~ - C * X F U ~ - ~ C ~ N W
n 11 I I X C ~ . * w N Z ~ Z Y Y - A J ~ W - A ? ~ f i - 1 7 ~1-17 L C W P Z J # ~ F7
P G C a t l e a n d O + m + I ~U ~ C + ? - 8- ?C~ ~ O ? ~ ~ c t - P - - I M
~ d z
- - r c
x cun,u- N nld-qa -O,LLCU - n o F--, - a a e - a % * . - r . e m u .IF-
W W T-% 3 r J
CCb-
M O W
H
u
>=gz C
ll U U ~ J Z X - 2 - L : U J Z Z
O > Z C X k L C k & C h " b e L & C h * C L C C C a U . w C +
U W ? ~ ; -1 1
h G L C L
C ~ ; - ~ Q ~ U ~ T . J T G C ~ ~ ~ J - , ~ : ~ U C - , A ? = ' K - I ~ ~ ~ - n
. ~r r~ 7~ 0_ - )
O U
c v
m lo
0 W
c
m rn
- 00
RI v1
w w
7
0
CF
V < 3 c 0
m.xC-a
err F (P
0
0-
(F
0
C
c
Z G ~ CRII.,II.$TAA) 3 ~~LE(~~(I,K~LxII 1916000
JT~*Q~Y.~TA = LAX) 1917
- 202C CONT!NUE
M A T R I X CON313TEhT I F C O H R E L D D E 9 NOT E X C E E D 1.t)
1 la
1919
N20 1 920
YC=D 1921
C ==:==t==== 1922
t o 3 0 CALL C R O U t f R j
C ---
a"--' .
.
..
a
-.
.
- -a-
I F t P T Q ! l C s L E s l e l G O TG 2 1 3 0
1923
1924
1925
4RITF(b,2040) b4,I,K,DTYPC 1926
2040 F f l f i ~ A T 1 / 3 6 H INCCl~SISTEhT CORREL M A T R I X A0JU3?ED,314,~12,3) 1927090
C hITHCdPY 1 9 2 4 - 1 9 3 1
FdC=FACm,2 1932
1FfFAC.GTom.iIGb TO 1950 1933
'JCOrnl 1934
Nrh+l 1955
IFiN.Cr.10) GO 70 150 1936
311)~=0. 1937
Cn aoq!, ~=l,tlX~t)P 1938
D ? 2070 LX:l,NYAR 1939
I f (L~E~I.LX) G O TO 2075 1940
T M P P = ~CLICXI 1941
Y~IM~SUM~THPP 1942
207C C n h T I N U E 1943
2 0 P C CDNTZNuE 1934
TEHP=UINDP*NINDP 1945
S~I,V=SL;E(/TEHP 1946
TEYP=DTQPC-l. 1947
/F(TE"PoGT,.13 ?EHPa,l 194a
TuP=l.-TEMP 1944
Dn aiao L = ~ , N I ~ P 1950
L?P=L $1 1951
~n z l i a
LX=ITP,NVAR I952
P (L P C X I =
DBCE ( T P P P * T P F + S U " * T E M P ) 5153300
IF(LX.I,E.'JZNDPl P(LX,L)=fi ~ L I L X I 195Q
LTPaLTrlF f L ) i 9%
JTP=JTHP(LX) !q5b
b'r(l TP.LE,N%T~) t o TO 2 1 0 0 1957
IF(TTP.LEeNSTA1 GO TO 2090 1738
LYF~LYP-%~TA 1999
JTP=JTP-N974 1960
QA~TP,LT?,JTP)xR~L,LX) 196 1
~A(~~,J?P,LTP)=R(LILX) 1962
G!.I rq 2110 1963
209C f TPPcLTP 1464
LTPZ.T~P 1965
JYP=ITHP 1966
2 r o C RArr,LTP, J T P ) = % ( L ~ L ~ ] 1967
I F ( lTP.LE.SST4) h~(XpJTPtLTP)=R(CILX) 1968
P I ~ CC ~ ~ T I ~ U E 1469
~ a a cC G ~ T I N U E 1970
;n ~n 2 0 3 0 1971
t t j IFlD?:i7iC.GEs0.)
~ C J PO 2 1 4 8 1972
i R I T E ( b , 7 0 ) I,X,DTR!!C 1973
DTFF(C=O. 1974
2 1 4 C IF(MCR.GT.0) GO 7 0 1740 1915
2 1 4 C CnKTIUUE 1976
t l h C CqfTINlJF 1977
I F ( 1 T E w ~ ~ E 9 . 0 ) G O TO 1860 1978
IF(TTRYS.EO.Z) G O TO 3 1 C O iY79
ai7c . f ~ r r w c e ,l o ) 1910
C e * t a a * PRINT C C R R E L J T I B h MAT93X * a r * Q * * * * t e r + z * 19R;
DO 2260 1=1,12 t9a2
IFfrTRt43,LE~R) H&ITE(6,21fiO)~O(Zl 19*3
2 1 8 0 F t l a u P ~ ( / / 3 9 ~ F41v COHCEl.PTJflk! C O F F F T C I E N T ~FOR ~ O N T H l ~ 3 ) 1984008
IFITTR+JS.GT.OI ~ ~ 1 T E ( 6 , 2 1 9 0 1H O ~ I ) 1985
2 1 9 C FOFHAT C / / 4 0 ~ C O N S I S T E K T CDRRFLATTON 4 A t k I X HOtdTHII3) f 58bOOO
~ R X T E ~ ~ ~ ~ ~ ~ O ~ ~ I ~ T A [ K I I K ~ ~ I ~ ~ ~ T A I 1981
2230 F O Q r A l (/3X'3HSTl, 1817) 19A8000
~PXPECSIZ~~O) 19149
2 2 1 0 F K I R H A T ( ~ ~ Y , ~%ITH
~H C U U A E N P kfOk7H) 1970
p n 7220 K81,!,!i?r 199 1
2 2 2 0 ! J v l ~ B ( 6 1 2 2 3 0 r) q t r ( x ) , ( Q A ( ~ , K ~ L ] ~ L : I ~ ~ S T ~ ) 1992
2250 F ~ ? : ~ A (~x,Is,
T 18~7.31 19936017
icXTEfb,22~o) 1994
2 2 a C F ~ $ : ~ A( T2 0 r , J s v H l t wp k ~ ~ ~ p M r ObK ;T H~ A T A B O V E S T A ~ I O N ) 19950 0 0
ITP='lSf A+! 1996
on 2 2 5 0 ~ a l , r j s 7 n 1997
2 2 5 0 L i " T T E l h ~ 2 2 3I ~ )~ T 1, ~ JR (A~(, I (K
,L)~L=ITP~NJTAX~ 19P3
t Z h C Crl!:TJwuE 1999
IF ( l h N A L . t ~ . o l t P 7 0 310C ?OOO
IF[JTaN8.L~.oI GP T O l b 9 n 2001
~ F ( ! P C H S . L E . ~ ) GI: 7 0 2 8 7 0 ,3002
C PU'icH E S ~ E ~ ~ T I A E cLE H E K T S OF M A T R I X 2003
Cn 23.00 K U l , b i S ? A 2004
IF!K.EQ.l) G O TO 220C 2003
?TF=i(-l 2086
" 0 2270 t,al,rT~ 2007
227C ~ ~ I T E ( ~ I ~ ~ ) ~ ~ T A ( K ) ~ , ~ ~ T A ( ~ ) ~ ~ ~ A ( I ~ K2 0 ~0 8 I - ~ ~ ~ = ~ ~ ~ ~
22RC ?290 L a t < 3 T A A , t a $ T A ~ ZOO9
LTFHP=LI~S~~$ 26 10
?aQc ~ Q I T E ~ ~ , ~ OT I J ~ ~ (,ISTI Y ) ( I T E P P ) , (AA(I,K,~) t I=lf12) ao!l
230C C~~KYINI~E 2012.
G O Tn 2 8 5 0 2013
CL * * * * *Q E C l l N d T ' t T U T E M I S S I Y G DATA* * * * * * * * * * * *
9 201G *
2310 IFfTANAL.LE.al 613 T O 3 ~ ~ 6 20 1 S
IF (T9COS.LE.O) 60 TO 2 6 1 0 ?O!b
~lV~P=K3?A+1 2017
!r: 1 2016
2600 JSI,NYRS 2019
C O 2590 re1112 2029
IX=I-I 202 l
.IF (?X.LT.l) lx=lt 2022
~t=r+l 2023
Dn % S R Q K = ~ , ~ ~ S T A 2024
IF(O(M,K).NE,T) GO PO 2530 2025
C F G R t l C 6 R H E L A T I F h r A l R 1 Y FOR EACH HISSING F L O b 2026
hf~ D P J o 2027
fjn 2 3 9 3 t s l , ~ 9 T A mas
LY=l.*NSTA 2029
IF(R(W,L)eNF.r) G O TO 2320 2030
I F (B(M-1 ,L) . F 2 , Y ) G O TO 23qq 2031
N;~OP=:JI%DP+~ 2032
ITEMP=tJThOP 2033
Xf~'iNOP)=I(Y~l,L) 2034
P(NTNDP,NYAR) r D ~ ~ L E ( R A ( I , X ~ L X ) ) 2035006
~n r n 2 3 3 0 2036
z32C V r h 0 P = ~ r t ; D P * l 2037
ITEM?=~IINDP to38
X~~T~~PIZ?(H,L) 203 9
~ r > : f k ! G p ~ h U A f f=j DPLE(Rh(IrKr1.)) 2040000
=
2 . 3 3 ~s t ? i r r r n ~ , ~ r : : I ) ~ ) I .ODC 20urnoo
IFfL.E2.NSTA) G9 70 Z39C ZQ42
ITP=L+l FOa3
D i ? ~ S R ~L A JsI~P,?~sTA 20a4
J u s t 4+N!+TA 2045
I F I O ( H n L ) .EO,Tl G U TO 2 3 5 0 2OUb
~ ~ ~ n ( ~ ~ ~ h l . E 60c TO
. 1 2) 3 4 0 20 4 7
f TFYP=XTEHP+I 2048
f v o ~ , f f E Y ~ :a GBLE(9b(:,LIL~9)
krr 20a9000
r;n r n 2.370 2050
2 3 J E IF(q(w-1 ,LA) .KC,?') G O TC 2380 2051
fTFYP=rTENP+l 2052
R f h YbinP, xTEI.'P) a DPLEfRA (I,~,Jxll 2053000
Gn TO 2 3 7 0 2054
235C I ~ ( 3 t ~ ~ L A 3 , E f l . t )60 TC 2360 2055
ItE.?PeITEMP+I 2055
R ( N T % ~ P , I ? E ~ F )a O P L E ( R a (!,LA,IX)) 2057000
~n r~ 2370 2058
236C IF(o[P-!,LA).EG.T~ CD TC 2380 2059
ITE!qP:ITEnP+l 2060
~ ( ~ T K C P ~ I T E ~ P z) R B L E [ R A ( I x , L ~ L A ) ) 206 1 0 0 0
C ADO 3YHMETRICAL ELEpEhTS 2063
2 3 7 ~R ~ I T E M P D N I N B P I = R ( N I N D P , I T E H P ] 2063
2380 c n t . r r ~ u e 2064
231C C n h T I N U E ?Oh5
IF(NtNDP.GP.0) G O TO 2400 2OQ6
K INDP.1 206 7
Xtl)=O. 2068
P(1.1) t l.ffDQ 2069000
LY=K+NSf A 2070
R(1rNVAR) = o B c E ( ~ A ( I , K ~ L x ) ) 207 1 0 0 0
240C I T E M Q = N I N O F + l 2072
D n t u l o L=I,NI~DP 5073
t41C R IL, I T E H p ) = R ( L p N v P R ) 2074
C Z======ZZL 2079
2a20 C A L L CROUT ( ~ 1 2076
C =========a 2077
ITEk*PnNIHbP+l 2078
TEi4rtl. 2079
I~IOC=O 2080
o n 2 4 U 0 ~ = 1N, I N D P 208 1
B ~(Ls ITEHPI
T M P ~ D A (R 2062
IFtTMP.GT.TEW1 60 TO ad30 2093
TFMP=T#P 2084
I~P=L aoas
2430 I F ( Q ( L D r T E Y P ) . L E , ~ . o A k o * 8 (I1 sGT.(nlISl . A T O G C 7 0 2 4 4 6 2086
I ~ ( P ( L , I T E ~ P ~) G E . O ~ m A h O , B t C ) . G ~ (a- O L S l e 4 0 e ( L 1 GC YO 2440 2087
INDTO~ ma^
2440 C n h T I N U E 2069
IFIPEDC.GT,Ol G O T O 24'50 a m 0
I F ~ D T R ~ ~ C . L E . : ..AF~D.OTR~~C.~;E.O.I GO TO a s t o 209 1
C I n I T V A H X A ~ ~ LwET f H L E A S T
I F M A T R I X I N C O ~ ~ I S P E N TO 2092
C CJgRELATZOh 2073
2430 I T Y P = N f N O P = I 2094
I F ( T T P . G ? ~ I T H P I G O TO 2 4 8 0 209s
on 2e70 L=ITI>~I~UP 2096
D n 2460 L A z l r l T E H P E097
ZPhC 2 ( L , L b ) = R ( L + l ,LA) 2698
2870 X l l ) = ! t (L+J) 2097
t n a a on 2 5 0 0 L Z ~ X, T P P a100
na 2 4 9 0 L A = I T P , N X N D P 2101
2119~ s IL.CJI=R(L~LP+II alas
2SOQ C n h T I N U E 2103
NTNnPZIIHP 21014
I j r ? T 3 242Q 2105
C ADD RANUIIM CUYPONFNT TO ?RESERVE VAR%ANCE 2108
251C YEHP=O. 2107
9U 2 5 2 0 L = l l h 2108
TEYP=TE~P+H~GE~~(IXX) 2109
ts2c ?Fr9=TEf+p~RNGE~(IxX) ti10
6 COnPUTE FLOW 2111
A L ~ ~ ~ ~ - o T O ~ I C ) * ~ . ~ 2112
TEf1P=TEY~*4L 2113
On 2530 ~ a l , * i I h D P 2114
2 5 3 ~T F P ? = T E % P + ~(LI a x (CI 2115
DCu,K)=TEHP 2116
O~(V,U]ZE 2117
TD=rj(u,!t) 2118
C ADD N E U VAbUE TC SUaS OF SQUARES AND CHQ39 PRODUCTS 2119
DC 2560 L ~ ~ ~ P ; S T A X 2120
IF(L.Eo.KI GO TO 2 5 6 0 2ltl
C SUQSC?lPTJ E X C E E D I N G h S T 4 R E L A T E TO P R E C E D I N G H U h T H 2122
L Y l l -NSTA 2123
I ~ ( I - X . L T . ~ ) T*P=Q(~,LI 2124
I F (LX.GT.0) THP=G(H*l PLY) 2125
SF ITPP.EO.Tl G d 7 0 2'560 2126
C COUFIT AHD USE C h L Y PECORfIED P A I R S 2121
NC6R(I,KIL)=~CAB(TpK,L)+1 2129
SIJMAC~~XIL)=SUP~(I~KSLI+TP 2129
~UWRCIIKILI=S~JPR(IIK,CI+TPP 2130
EOA C I , R ~ L I = ~ ~ A CT,K,LI+TP*TP 2131
3aR ( I D K . L ] = ~ O G ( I I K p L ) + T ~ P * T N P 2132
XPA~~CI~K~L)=~PAB(I,K,L)+TP~THP 2133
I F ~ L . . G T . N ~ T ~ ) 60 TO 2'540 2134
'~C~~[~,L,K)X~ICA~~(T,YIL)
~!j!'h(l,L,K)~~!JVa(l,r,L)
~ l l ~ ' ~ ~ I r L , K ) = - 3 ! J ~ ; ~KI!.]
6(f
9nA ( 1 J L , K ) = S m 2 (T##,L)
SqP (I,L,K)=SOP (I,KfL)
XPAH ( I , L , K ) = X P A ~ ( I , K , L )
C R E C t 7 H l r t l r E C O R R E L A T T f l N C Q E F F I C I E ~ T STO IHCL1Jl)E N E k D A T A
2540 I F ( P J C A ~ ~ . X , K ~ L.LE.2) ) G o TC 2560
~ E ~ F ~ N C A ~ ~ I I K I L I
T ~ P = C S Q A ( I , K , L ) ~ S ~ N ~ ( ~~ K , L ) * S ~ J H A ~ I ~ K ~ L I / T E ~ P ) * ( S Q ~ ~ I , K ~ L ) ~ ~ ~ J H ~
i (I,X,LI*~~P~R(~,K,L)/TEHP)
C E L I Y I h A T E P A I A S W I T P ZERO V A H X A N C E PROOUCT
IF(T~P,LE.o,) G O T O 2560
TMPi!=f,
THP~~xPAB(IIKPL)~~U.~(A~I,KIL)*~U~~~(Z~K,L)/TE~P
C R E T k I E A L C E S R A I C SIGH
IF~T~~F&.LT.O.ITPP~~=-THFR
innh=THPb tTNpA/TttP
RA~i,k',L)=THPOaT!IPA**,5
Irror
tA=L
IF(L.LE.N~YA) G R t a 2550
ITPDIw!
TF(~TP.LT,II t~p=t2
LA=L.X
25SC X F I s C ( I , K ) ,LT..OOal.ORsSDCITP,LA) eLT.,OO RA(I,K,L)=I~,
I F ( L . . & T . ~ ~ S ~ A ) Gn TtJ 2560
~ I fI T
i,I-,K)=RA~X~KIL)
2 5 6 0 CO%TXNUE
tYnP=~yRg*12+1
I F ( ~ . G E . I T ~ P l G O T O 2586
T E ? P=R ( M , K)
nn2 ~ 7 0L = ~ , N S T A
TwF=? t t r + f ~ L I
1FlT~'n.EG.I) G C TO 2 5 9 0
LY=X+NSTP
IT P z Z + l
12) IT p J l
I F (rTp,RY.
CC~~(~TP,I-~LX)=~-C~HIITP,L,LX~+~
3 r l r A I 1f P r L , L x ) = 8 u H A I~TP~LI~.X)+T~P
) +PTIPL ~ ~
S ~ I H : ~ ( ~ T P ~ L , L Y ) = ' ~ U " ~ ( XI T
SdA (ITP,L,L%)=SOd [X?P,L,IX~+T~P*7PP
SflD ( i T ~ r L , L X ) = ~ o S ( I T F , L t l w)+TP*YP
XPA~(~TP,L,LX)=KP~B~ITP~L,LX)+TP*YHP
I ~ ( t ' C A 9 ( X T P p L , L X ) ,LE.2) GO T P 2570
TEf'P=FCAE t I T r , L , L x I
T P P = [ $ c A ( I ~ P , L , L . x I - s L J ~ A ~ I T B , LLX ) Y S U Y A ~ I T P , L , L X ) / T E ~ ~ P ) ~
1 [sf;.\[ j T P , L r ~ ~ ) ' 9 1 1 ~ t j ( fXI ~ *~~ rU ~Y R (ITP~L~LX)/TEMP)
, ~
IF(TYP,LE8O*) G O TO 2 5 7 0
rk<PSzI,
I P P A : X ? ~ E [ I T P , L , L Y ) - ~ L . ~ ~ (AI T P , L , L X ) ~ U M B ( I T P I L ~ L X ) / T E ~ ~ P
~ K E U ( I , K ) ~ ( A U Y R S * * ~ ~ ~ Y ~ . ~ ~ ~ ~ F ~ Y I ; S ~ T E N P * ~ S ~ A + ~ , * T E 2278
~P~+~)
! / f b b ~ ~ ~ 3 * c ~ ~ Y ' 4 3 ~ 1 , ) * ~ 1 , hSD(I,K)**J)
~ ~ ~ - ? , ] * ?279
200C C O ! T I N l l E atao
2H!C CPkTIvUE 220 J
L Q TA P ~ ~ ~ R T A P 2282
;~su$=l 2283
IF(IPCON,LE.~) G O ~n 2930 2294 r
IFCNCSTY.GT.U) G O TO t z q o 228s
c P R I b I T ADJUSTED F h ' E l r t E h C Y STATISTICS 2286
242C ~ ~ 1 t E ( 6 r l O ) 2287
s2TtEC6~2830) 2288
2 B q C FflQflkT(/30W kDJI'SPED F R E C U E N C Y S T A T I S T I C ~ I 2289
'<PT?'E ( 6 , 8 9 0 ) IYOII),I"l ,i?l 2290
n n a600 K=N3TYX,hkST4 tasi
M P I T E (4,1010) 13TAfK), ( ~ V ( I ~ K ) I I = ~ ~ I ~ ! ) 22Q2
RITE [ b , l o 2 0 ) ( S ~ ( I , K )1, c l 1 l 2 ) 2293
I A I T E C6,103n) (sKE'~[I,KI r l t l ~ \ i ? ) 2294
~ E T T E( 6 , t a ~ n ) ( D t ~ ( f , K l I I=! ,121 2295
sac c n h r r t u ~ 2296
C P ~ I N TC U M S f S T E h ? t f l R 4 E L A T l O h ? l b T R I X 2297
ITRPIS=I 2298
f i n rn a t s o 3299
2A90 !F I T P c H s . L E . O I 60 T O 2 3 7 0 2300
C P I I N C H FPECUEP'CY S T 4 T I S T I C S 2361
3fl E S & O K = I J S Y i X , K S T h 2302
~ Q T T E f 7 r B O ) Iq T A ( K ) , t X Y ( I , K l * I 0 1 1 1 2 ] 2353
* ~ ~ ~ T E ( ~ I ~ ~ ~ T S T A I K ) J C S C [ ~ ~ I O ~ ~ ~ ~ , I ~ ) 2300
~ I U ~ ~ F ( ? ~ P ~ ] X C~ STK ~E k( ( K I a IK ,) , I = l , l 2 ) 2305
! I L ' I ? E ( Y X ~ ~ ) I S T A ( K ) , (nQ(IpK),I=i,lZI 2306
2 8 b C CnhTItJlJE 2307
c C O M P U T E ~Q*BII~ATIUN FLOWS 230e
6 2309
t P P C IF(FJCR3R.l.E..)) G O TO 2910 2310
iTt'?=l ~ * N Y R S + ~ 2311
U n 2900 t J J i ? , I T r p 2312
g o an90 KXZ!, ~ICOHR 2323
1<=gl(+N,71A 23 14
I T ? = CKX, NS I P AT
b S )~ C
tIl~.Kj=O. 2316
Dn 2 8 8 0 t = l r ~ T P 2317
ITE'P=~STAC(YY,L,IPAS~)
2 0 6 ~~ ~ M , K ) = ~ ( M , K ) + ~ . ( ; ~ , ~ T E Y P ) ~ C , S ~ ~ C ~ K X , L I I P A ~ ~ ~
289C C R G T I N U E 2320
29CC CflfTINUE 232 1
C 2322
+ r * r * M A X AkO H I N RECChST1TUTEO FLOkS tt * * * * * * * * * * + 2323
2-7 1 r, ':=o 2324
ZTPNS=I 2325
I ~ ~ ~ ~ X ~ ? C S . GLOE T~OO 2qZO
I 2326
frrv=wy!?g 2327
%92C I F ( ? f Y ? . L E , O ] G O 10 293C 2328
tjz&+f 2329
%.~=YxRC$ 2330
ITWP:~TMP-PX~C~ 2331
IF(TTHP.GE,O) G O 90 373C 2332
ITVP=HXQCS+IfMF 2333
YJ=TTPP 2334
I Pl4D20 2335
~n ~n
3730 2336
293C T F ( I t & R L . P E . 2 ) E O 10 3 0 t C i?337
c + * a * + CDNPUTE G E N E ~ A L I Z F D S T A T I S T I C S * *** * * * * * * * 2338
isrr~[61 , 3 ~ 1 2'39
an 3000 K s l r ~ S i A 2300
C AVFshGE CflRREbATXGN C Q E F F I C X E N T 23a1
00 7 9 3 0 L t i r K 23a2
LY=L+N~TA 234s
KSU ~XILISO. 23ao
DR ?900 I 3 1 , 1 2 23a5
T"P=RA ( I , K I L ) 2346
IF~L.GE.Y)THF=%A(I,K,L% t347
2946 QAVfKnL)8RIV[K,L]+TXP 2348
Fikv(~,L)aRa~(~,L)/lt, 23G9
3 ~ ? ? 1 6 r 7 ? 1I s T A ( K I I I S T A [ L ) ,RAV~KIL~ 2350
2'354 C~KTINUE 2351
C AVERAGE L O 6 3 FOR bEP At40 D R Y SEASOY9 2352
AVPX(K)~AV(~~~K)+AV(~~,W)+AV~I,K] 2353
tHX(K)%l 2354
AVHN ( K ) e r v ~ X(K) 2355
IMhlKIal 2356
T H P ~ A v ( ~ ~ , K ) + ~ v ( ~ # K ) . ) A v ( ~ ~ K ) Z3'57
IF(AVMX(K).GE~TMP)GO 70 2960 235a
AVPX (K)JTHP 2359
IMY(#)a2 2360
C R t o 2970 236 1
296C A v M N ( K ) u T H P 2362
IWK(K)Z% 2 363
C AkD A V E R A G E S T b h b A f t D D E V I A Y I O V 2364
2970 3 n A V ( K ) = s D ( i nX)+SflC2tU) 2365
~n 2 9 9 9 1 ~ 3 ~ 1 2 2366
3QAv(K)=s94v(K)+30(I,K) 2367
~~P:AV[I-2,K)~AV(I*iIU)+AVCI~K~ 23ha
~ F ( A V ~ X ( K ) , G E ~ ~ M P I GTOO 2980 2369
~ v r (rN I ~ T H P 2370
IHXCKIsI 237 1
2 9 8 0 I F ( A V M N ( Y , L E * Y H P ) G Q T O 2990 a372
A V M N (K)=Yt!p t373
I t c h tIoal 2374
2990 C 9 K T I N U E 2375
A V M X (K)=AVyY (K) /3, 2376
4VVN(X)~AVHN(K]/3. 2377
S O ~ V ( K ) ~ S D A V ? /I 1] 2 , ?378
30CC C n h T f N U E 2379
blRXTE(6r 1 4 0 ) 2360
Dn 3010 ~ = l , ! i s ? A 2361
ITP~IMx(KI 2582
I T r P = l M t 4 (K) 23133
301C ~ ~ 1 ? ~ [ b r l %~ 0S ?) A ( K ] I A V P Y I K ) ~ S 8 ! 3 0O
A ~ ( KA
rl ~ UV
( 1 TM
p )1 f l f N
J ( I Y k(
~ 9K ~ 2384
C * * * * APPLY G E N E 3 A L X Z E D $ T A T Z 3 T I C 3 * * * ** * * * * * * *
n a 23P5
30EC I F ( T G N R L . I - E . 0 3 G O 1 0 3106 2386
D I l 3080 K = l r N 3 T A 2387
XX=X+NS?A 2343
C XNYERHEOIATE EChlHS 2389
NVXYNCIHN (K)-IMX (K)-3 2390
IP(NMX~N.L~SO)N~XPN~~PX~UN*~~! 2331
!dYl~MX=b-pYXMY 2392
D o 3043 l = l n l t 2393
C S T A ~ l D A R D O E Y I A T I O K uNIFGRH, SKEW ZERO 2394
JKEWt1rK)XOs 2395
3oCI,KI=Oe 2394
sn ~ ~ , K I = S O A V ( K ) a397
3 f l 3030 L = l r N S T A 2398
C Z E R O C n 2 R E L A T I C N k I T H O T H E R ~ T A T I O Y SAND P Q E C E D I h G H O N T H 2399
LY=L+NQYB 2400
R~CI,K~LX)~O. 245 1
. IF~L.GE.K)GO T O 3030 2402
C U N f F f l X g S E R I A L C O R R E L INTERMEDIATE H C N T H S BND l N T E R * S T A 2463
Rb[InK,L)t!4AvCK~L) 2 a0 a
QA ( T n L , K ) I R A (S,K#Ll ?a05
303C C n N Y I H U E 2404
RA(I,K,Kx)=QAV(K,K) ?GO7
RhCInK,K)=1e 2468
300C d R h l I N U e 2409
c M E A N AND S E R I A L C G R R E L , M E T AN0 D R Y 3 E A 3 0 ~ d 24 10
T M P ~ R A V ( K # X bI e t 5 2411
TEMPtTHPm ,3 2412
IF(TMP,GT.,9~1 TMPte98 2423
IF(TEMP,LT.OI TEMPZO. aa!e
ITP=IHXCK) 2 a l ~
A v ( ~ T P , K ) ~ A U i t XlK)< 2416
Mh(XTP,K8Kx)r?EHP 2417
IT~EIMXCK) -1 2414
IF(ITPsLT.l)I~P=12 24 19
AV(tYPnK)~AVMxCK)+.2 2420
AA[ltP,K,KXI=TENP 2Q%1
I?P=IHx (K)=E 2422
IF(TTP,Lr.lI :TPt11P+!2 2423
A V ( T T P , K ) ~ A V Y( K~ ) = . l 2429
~Z(ITP,K,NXIZ?E#P 2025
ITP=IHN(K) 2426
AV(lTP,K)sAV4N(K) 2427
RA(ITP,K,KX)aTPP 2428
ITP~IMN(Y)-I aat9
rF(TTPeLf.l)1TP'12 2430
AV~IYP,K)=AV~IN(K] 2431
Gh[TTP,K,KX)zTHP 2032
T?P=ICN(K)-~ 2433
iFtJTP.LT.11 !TPzITP+i2 ?a34
hV(TTP,Y)aAVkiY(K) 2435
E4(ITPIK,K~1=T:dP 2436
C HE*vS FCR Y O h T P S F U L L O W I N G HE? 3EAbON 2437
IF(tJYXMN.LTmXIGfl T O SObO ?438
ITP=IHx(KI 2439
TFMP=NUXpN+I 2aQO
?E~P=(AVHX(K)-.!-AVHNIK)]/TE$4P 2401
on TOSO IXSI,NHXMN 2042
~.r?nrx 2443
I = I N x t K ) +Ix 2404-
IF(I.Gtel2)1=1*12 2405
3050 ~ V C I ~ K I = ~ ~ ~ I T ~ , X ) ~ T E H P * T ~ I P 2446
C HEhFJS F O R M O h T P S F Q L L O w I k G D W Y Y E A S Q N 2447
3060 I F ( N ~ i N H X . L T . I l G O TO 3 0 9 0 2448
ITP=INIJCK) a449
TEP~=NNNPX+L 2a50
TFkPz I A V M Y (K)-.l-4VMN (tt) ) / T E M P 2451
DD 3 0 7 0 IX=l,NPNpX 2452
TI.IP=IX 2453
I=lwNIK) + I X 2454
IF/I,GT. 12) 1*i-12 PB55
3070 A U ~ I , K J = A V [ I T ~ , Y ) + T E H P L T I ~ B 2456
309C C P h T I N l I E 2457
309C 11?k!WL=o 2458
XG'CrlNtO 2499
GP T O 1730 2460
310C L F ~ t ! ~ 9 ~ ~ L E , C , J ~ D , ~ P ~ O J . L E ~ O ~ 4 ~ O , GNOP TAf l3 3150
~LE 2461 *
CP * * * * * * FLOI, GEKEAATIOL E3UA110NS a * * * * * * * * e * * r * a 2462
hibDP=A1374 tQ63
NY4P=kSTA+l 2461
on 3200 T=III~ 2ubfi
Ip=l-l 2466
fF tIP.LT.1) IPJ12 2467
nn 3199 K=I,?JSTA 2468
an 3 1 0 0 L = ~ , H S T A 2uc9
C C n p 2 E L A T X O N 3 I h CURRENT r O h T H 2470
I F CL.BE.Kl 6 0 TO 3120 2471
~ ~ f ~ , s ~ ~l 3 1~ ~ l
v E(RA(I,K,L)) 2472ROO
nn 3 1 1 0 LA=L,NSTA 2073
LY=LA+M~TA 2474
IF I L A , L t . K ) R(L,LAI = OBLE(RA(IILJLA)I 2475000
I F ( L A ~ G E . ~ ) ~ ( L I L A I 3 DBC~(~A(IIL,LX)I 2476000
3110 P I L ~ B L ] = Q ( L ~ L A I 2477
r;n T O 3 1 0 0 2478
C C n R R E L A T I O N 8 N17H PPECEDING HOkfH 2479
312C L X = L + k S T A 2480
'J(L,KVhQl = D"LE(RA(1,KrhY)I 2431000
an 3 1 3 0 L A = C , N S T A 2482
JfL,l.I) = D R L E ( R ~( I P , L , L A ) I Z463000
3130 ?(L.ArL)sG(toLA) El484
3 1 4 C C~NTINUE EYBS
C at:==z==sz 2486
C -------
CALL CROUT(R)
---..---=-* -
D F 3150 L=I,NSTA
2487
toes
24a9
3lSC + E T A [ l , ~ , L l = b ( L ] 2490
IF!~TRVC.L~.~.) GO TO 3170 249 1
~fiITE(6,3160)1rK,DtRkC 2492
316C F i y R t J 4 T (34P I N C O N S I S 7 E k l C C S R E L H A T R X X FU9 x = ~ I 3 1 4 t i Vap12, 2aP3000
I ? H DTRHS=pFba.j) 2434000
I P ~ N S I ~ 2495
s o r o 1730 2496
717C r F ( n T R M e , f i E . 0 , ) ~ f Tl a 2497
1 ~ ~ I T E t 5 , 7 X0,1K , ~ T R H C 249a
I?TRqC=O.
3180 ~ I . C F T ~ I I ~ ~ = ~ I . - ~ T R ~ C ] P P , ~
2499
2500
319C CONTINUE
250 1
- 3 2 0 ~C ~ N T I N U E
C * * * * * *
IF(NPASS,LE,1)
GEuERArt FLGbS
SO TO 3 ~ 0 0
* a * r * a * * * * * , * ,* ,, 2502
2503
2504
321C I F (IsTAT,E~.PISTAT) G O ~n 3220 2565
fItiTbT)
2506
LITAT=LSPAT+l
2507
~n rn 3 2 1 0 2508
3220 ~ ~ X ~ E ( X S T ~ T l ~ A T U Y r N 3 Y A , ( ~ ~ ~ 8 ( ~ ~ , K a ~ , N 3 Y A ~ 2509
',3TAT=NSTAT+l
2510
LSTATzNStAf
2511
3230 K = ~ , N R T A 2512
a n T T F ( I . 9 i A T ) I S T A ~ K ) ,~ A Y ( I ~ ' O ~ ~ ~ ( ~ ~ K J ~ S K ~ ! ~ ( I , K ) , D R ~ ~ , ; <2 5) 1, 3
1 ~QET~~~,K,L)~L~~~E~TA)IALcFT~IIx)~I=~,I~) 2514
3 2 3 0 N9?4?:N3fAT+i 2515
L.3TATaNSTAt
2 5 1s
I F (?PA33,L.~.t4P893) SO Tfl 200 2 5 17
3 2 4 0 J4z1 2518
loA.SsOi
2519
N.iE0 25?0
tfA.Zfl
?52 1
?F fvPqn~.~E.Ol G O T O 3 3 1 0 2522
Cn * ** * *
PPflJECTED FCCh S E ~ I J E N C E 3 * a r 9 ** * a * * a * * * 2523
3250 JA=IyRBJ-IyGA 2524
l=LYRPJ-tY4A 2525
ITt'P=O 2526
ITP=MTHPJ-IMNTP-~ 2527
IF(ITP,NE.OI GO TO 3 2 6 0 2528
TYYP=~Z 2529
3 2 h C I F IIPP.LT.1) IVP:XYP+l2 2 5 11
'?~=[JA-l)*12+1TP+l-lTYP 2532
Cn 3290 ~ = l ~ r ! s T a 2533
IF I S n C I T P r K ) s E Q c . O . e C R o ~ A w E r 1 . 1 ) G n T O 3280 2534
T F ~ P = A L ~ ~ G ( O ( P ~ A , U ) + UT7,Yll**4342943
C~(I 2539
~~~~~~~~~~~~~~~~AV(ITP,lO]/SDZIPP,K) 2536
IF i S K E W C I T F , K I . E n . O . ) Gb TO 3290
T+!P:1 .
~EPPx*~*~KEU/XYP,K)*~~PR
f F (TEH*.GEeO.)
( KE] +Y1 a
G O 70 3 2 7 0
2537
2 5 30
2539
2 5 00
~E~P=~-TEMPI 2541
TPP=(-~YP) 2502
3 2 4 C ~ ~ ~ E ~ I ( K I = ~ , * ( ~ ~ P ~ ~ ~ ~ P * * ( ~ , / ~ . ~ ~ I ~ ) / ~ K E ~ ~ ~ 2T5 PU j~ K ) + S K E ~ ( ~ ~ ~ ~ K ) /
Gfl T I 1 3290 2544
328C d J G E v ( K ) 1 0 , 2545
329C C O ~ T I N U E 2506
. JY=tYRPJ-1 2547
C N = S E I I u E ~ C E KC., H 3 MGbTH NO,, JX = YEA^ F ~ C . 2 5u8
3300 N = k + i 2509
r>n r a 3330 2550
C S T A R T W I T H Z E R r O E V ~ A T I U N AT ALL 3 T A T I O 9 d 255 1
331C 0 f l 3320 K = I , K ~ T A 2552
332C ?PFEV(X)=O, 2553
C G E v E q A T E 2 YEAR3 F O R O I S C A R D l N L i 7554
El j = 2 255'5
J'i=-c? 2536
333C IF(YpJS9,LE.l) G U TO 3 6 C C 2557
IF(IPAgS,GT,!) 6 0 TO 3340 2556
RFh 7 K n 1st AT 2539
NCTAPZO 2565
I91 bra0 25hl
3346 R E b I N O rOTAP 256%
LRTAPPO 256 3
F E ~ ~ ( I ~ ~ A T ) ~ S T X X ~ ~ S T A ~ ~ S ~ T ~ ~ X J , K ~ ~ ~ H ~ 2~5 6A4 ~
M3TY:hsf ~ X n l t 5b5
I~(%.Tx~~E.O G O) T O 3 3 8 6 2566
EXHIBIT b -22-
STP=YJ*it+l 2567
Sn 3 3 7 0 K = I , ~ , F J T X 2568
:F~IPIQJ.LF.I) G O TO 3360 2569
?39C u ~ A n ( Y f l T ' h p ) XTEYPI ( O ( P t K ) 1H=21 I T P I 2570
L~~TAPZLOTAP+I esti
IF[IlEtiP.~E.ISTA(K)) G U T O 3350 ?572
33hC t : r A n ( 1 3 T A t ) I p , ( A ~ ( I I K ) S S ~ ~ I , K ~ , S K E ~ C I I K ) I ~ ~ ( J [, K ) , 8 h ) 2573
'rusYA),ALCFTClrK1,1t:1112) 2574
337C C n F T I N U E 2575
7 3 8 ~"n 339n K = ~ S T X X ~ N S T A 2976
ISTbP=ISTAP+l 2577
f F (N,G7.0) f J v v E v ( K ) = Q 3 T A P( I S T A P ] 2570
3 3 4 0 c t - A n ( f ~ T a T l I P , ( A ~ C I I ~ ) IS^($ , K ) , s K E w ( I ~ ~ t KI ) ~o ( I , K ) , ( H E T A ~ , ), a 2579
~~'JSTA)~AI,CF~(T,K)~Z=~~!.~) 2580
CQ * * * * * * ~ E M E Q ~ TCEU R f i E L A l E D STANDARD D E V I A T E * * * * * 9 r e r 2581
30nC XF (TPASS,ErJ,l JXTHPXJX 2582
;~rP~lllntrCO~r~(~PAS~)
::ThPHUYTMD*f ( IPASDj
Dry 3420 K J l r ' l S T A 2583
:bn 3nio r=i1t.z a ~ a
CVG(IIK)~~, 2595
SOVtIrK)=O. 2586 -
3 t 4 l ~C ~ N T ~ N U E 2587
342C C C ~ T I N L I C 2588
XF(N.LE,O) ~n to t u o 2589
WPI~E(~,ID) 2590
'rPITE (6,3430) N 2591
343C F G R n A T 1 2 7 ~q E h E R A T E O F L C U S FOR P F ~ ~ O D ~ S ~ ) 2992000
I F ~ S P ~ S ~ ~IG WT R~I TJE,( b 1 2 k 9 0 1 I P A 3 3 2593
3 4 4 C q f l 3510 J = J n , N J 2594
-1=12*t ~ - l ~ + i assr
n r 5fco 1=1,lt 2596
.rzr+1 2597
IFINSTX.LE.0) G U TO 3460 2598
D G 4450 K = 1 , ? ! 9 T X 2599
3o5C :lPGEV ( K ) = P ( N a K I i?bdO
346C i F I H : L E , ~ A I G O T P 3560 8601
on ? a 9 0 K = N . ? T X X , ESTA 2602
C R 4 N D O ~ COHPOhEhT 2503
TFPP=O. 2604
il? 3470 L = l t h 2h05
TF!-P=~EvP+~NGEKCIXX) 26C6
34 7 C TFL4P=TEYu-t?tJ(:Eh ( I r X ) 2607
T E P ~ = T E H P * J A L C F T(1,K) 2608
o n saac L=I,VSTA 2609
3nRO T F ~ ~ P = T E ' P + $ E T(~I I K I L l *apiiEv(~) 2610
~vC~I,K)=A~C[I~K)+TE~P 261 1
SDv[f ~ K ) t S i ~ V ( Z , K ] + T E M P * T E ~ P 261 2
C(P,K)=TEHP 2613
'rsEv (X)=TEMP 2614
3aqc Gt'LTINLjE 2615
35nC CObTINUE 2616
75f c C n h ~ ~ y u E 2617
fF(YPhSS.LE.1) G O TO 3 5 5 0 2618
3f2C XF (LnTAP.ElY .!!flTAP) 6 0 TC 3 5 3 0 2619
PEA^ (IOTAPI 2620
I.'!f APt!-OtAP+f 2621
!:n T O 3 5 2 0 2622
3536 I T P = N . 1 * 1 2 + 1 2623
I?TAPZI~TAP-USTA+~!STX 2624
~n T s a o K=KSTYI,FJTA 252s
~ r ~ ~ ~ ~ ( ~ 9 ~ ( ~~ (~ ~ ) ~ f ~ c ) ~~ n~ =( t ) ~ oi t, p ) 2626
ct?TAP=t~QTAr+l 2627
I~TAP=ISTP~+: 2628
xi
~ISTAP.GT.KSTAP] G O T C 160 2629
35QC ~ ~ T ~ P ( ~ S ~ ~ P ) = Q ( ~ ~ ~ , K ) 2630
S55C A V l . n C + N J n J A + l 2631
E n 3 6 7 0 K=MSTZX,NSTA 2632
IF(~J+JXT!~P,CT,O) W91TE(br2h60) ( H O ( I ) F ~ = ~ @ ~ ~ ) 2633
an ' 5 6 0 I=!, 1 2 ~ 6a 3
A"~~IIK)=Avc(I,Y]/ANLQG 2635
S ~ V ~ I ~ K ) + ( ( ~ ~ ~ ( ~ , ~ ] ~ A V ~ ~ ~ ~ , I ( ) ~ * Z * ~ ~ 2L6 3O6 ~ ) ~ ~ N ~ ~ ~ ) *
KOXY+XgTA 26@9
I T P = Y ~ T ~ c (X
KPXA
~ S ~ ~
!itH,KjxO. 2691
0 F 3 6 8 0 LSI:ITP 2692
ITEt4P1KJTAC(K~,Ll f P W
368C D t P 8 K ) o n ( # , r ) + ~ ( n , I I E ~ P ~ ~ C 3 t ~ C ~ K X , L ~ f ? 4 9 3 ~
3b9C C n h T I N U e 269'3
37oC CffkTZNUE 2696
371@ CnKTTNUE 2697
3 7 2 0 IF(N.LT.tiP2n.J) 50 T o 5250 2498
IF(NYWXG.LE.OIGB TO 3aPd 2699
Cs * * r r M A % AND W I N GEhERATED FLOnS * r * * * * * r * * * * r r 2700
Xc c J x . ~ E . O l G f j 10 3870 2701
C SKIP H A X H I N IF E E h A I N I N G YEAR3 I N s U F ~ I C I E N T 2702
IF(JX.GT.O.AND.NJeLTeUY~XC)GO TO 150 2703
I TR I 4 3 = 0 27C3
3730 I ~ P = N ~ T A + F ~ C O H ~ 2703
00 3800 K ~ N S ? X X , ~ T P t?Ob
C MAX CALEkDAP M C 1m12r HA7 Ha 13, bmYO 14, 5 4 - 8 0 15 2787
Dt7 3 7 4 0 ~flrls 2769
C THf' = 60w8, T E Y P a 5 4 " ~V O~L U M E l Tt+pA n lln,j
1EKaaO,
ThtP=O.
A v G (K)lO.
~
"i=o
rr: 1
!F(ITRNS,GTeSI (3-1) * H x R C S ~ ~ ~ + I
3 7 9 0 J s l rt4J
Dn 3 7 8 0 r E l . t a
Ir=I+zs
v=c+1
Tt4Plar3 I H , K )
4VGO (K)=AVGO (Yl+TMPA
l4O=NQ+l
IF(TMPA,GT~SU~CI,KI~S~~CI~~)=T~PA
I F [ T H P A , L T . J I + ~ . ) ~ I X ~ K ) ) . S (~?QX t Y ) = T H P A
~~(TWPA.CT.~H~(~~~X)~SI~F(I~~K)=TH~~
I F [ T M P & ~ L T . ~ ? I Q ( ~ ~ #I X+ ~I O < i ! f 4 t ~ai'1iPb
)
THP=THp+rHPA
TEPP=TEHp+THpA
I F ( r . L T s 8 ) G 0 TO 3760
Tl4P:TPP=ntH-6,#)
IF(TMP.S~.S~~(L~~K))S~O(~~IK~~TMP
I F ( ? M P , L T D ~ H O ~ ~ ~ ), SKMI C C ) I ~ , Y ) ~ T Y P
IF(U.LT.Sb)SO T O 3770
~E"P=TEUP-O~Y'SU~U)
~F(r~~~.~r,str~(i~,K~]s~ccis,~)=~~np
I F ( T E ~ P . L ~ . S ~ Q ( ~ O , K ) ] ~ W Q (30,K)=TEMP
tfl T n 3730
3 7 6 0 SN? 1 1 Q ' K ) n T M P
3770 S M 9 t 1 S r K f = T E r $ P
3780 C l l N T T N U E
379C CDVTIHUE
C AVEPACE M0NTWI.Y FLOW
TEYPZXQ
AVGO (K)=.$VGQ /TEtiP
3.900 C r l U T I N ~ E
YPITE [5,10)
I F t I T R N S , G T . ~ l ~ R I Y E ~ b t 3 ~ 1t11N.l
C~
3 6 1 0 FnFiHA? ( 1 2 7 ~ ~ ~ A X I M U M V a L U C E s F O R P E ~ ; I o D13,3n
, OF, t o ,
1 ! 4 t H YEARS OF R E C D f O E D 4 h D REcQ~STITUTED FLOWS)
IF ( T T R V 3 a L E . ~ ) ! d ~ ~ T E ( 6 , 3 A 2 ~ ) N , N ~
3 P 2 C F 0 a P h T (/27H M A X I M U M V O L L ! 4 t S FCR p E p I 0 3 , 1 3 , 3 ~ O F t I 4 ,
125H YEAR3 OF S Y h f T t r E T I C F L P b 3 )
~ 4 o I t E ( h , % l O ) ( n O ( 1 ) rt11112)
I TF=h'STA+NCflrril
i)n 3840 KsNSTXX, I T ?
I~Eu?x~vti3[K)+.S
r n 3030 1a1,15
3 8 3 ~I ~ ( ~ ) = S H Q ( I I K ) + . ~
k o 1 ~ ~ 1 5 , ~ 4 0 ~ 1 9 ~ h (( I Ki f )f 1r ) * 1 = l t I 5 ) 1 ITEHP
3840 Cq':rINUE
k~IlElhrASO1
J P I ~ E ( ~ , R ! O )(HE (I),1=1,12)
o f l 3860 K = N S T Y : ~ XTP
D f l 3850 fx1,15
3850 1 ~ l t ) ~ ~ ~ f i ( I + l ~ t K ) + . 5
N!?ITE(~,B~~)I~TA(K) t ( x O ( ~ ) t I = l , l S )
3860 C f q T I N U E
C T R A N S F E E P P C K T O RECQtvSTITUTED fLOWS
IF(TTQNS.GT.O)G~ TD 292C
387C ?'.I = NYWXG
~n t n 3490
3BRO P J 3 K Y R
3050 IF(YPAS~.LE.~) G O TO 3900
IpdU$8fPAs3+I
; f ( N , E P e O s b Y O * I P A S ~ e L ~ s A P A 6 3 ) GO T O 3310
I F ( T P ~ Q S . L E . ~ P ~ ~ S ) GD TC 3 3 4 0
IPAS3al 2781
C e!l re
NE% J U ? 2782
S Y O C IFCNYRGaLE.9) G O 79 1 3 0 2783
IF C ~ J . G T . : ~ Y ~ ; ) ~ J = ~ Y R G ?784
!JYRG=NYRG-xJ 2785
r.n y o 5300 2786
END ?73?
s ~ ~ e n a \ ~ r zcx ~
e n CuR Y~) f 001
D T ~ E N S I O N~ f l b i i ~ f l n , i i ) , ~ ~ ( 1 0 , 1 1 ) 1092
OnUBLE PiJEC331CN R,H,RX 1063
cnvrcnu orn:~c,N z y g P , a 1004
hVARSNrNDPr!, 1005
o n an J = ~ , N I N D P 1006
a(JIa0. 1007
O ~ Y 10 K = I , N V A Q iooe
!C ~ ~ J I K ) ~ R % ( J ~ x ) iOC9
2 C CnhTINUE 1010
IF[VINDP,BT.l)SO T O 3C 1011
+tl)=u(i,2)~s(l,l~ 1012
gTK~CrS(l)*flC1) 1913
YEtlJRH 1014
c r t * * * c PE91VEU M A T R I X * * * * s * * * * * * 4 r r a 1015
3c on a0 K S Z , ~ V A A 1016
~ ? ~ l , K ~ = f ? ~ f , ~ ~ / ~ ~ l , ~ ~ 1017
Dn 8 0 K=2,NI84cP 1018
ITf'=Kol 1019
nn 6 0 J = X , S X N O P to20
on 50 Z = t r I T n iaat
L=K*r 11 0 2 2
SC u(JsK)=R(J,~jm~[J~Ll*R(L,X) 1023
XF(J.EO.KI S3 T O bC 1024
RIK.J)=R(-J,KI/K(XFX~ 10.25
bC CRIUTl.4lJE 1024
Qf7 7 0 I = l t l T P 1027
LZX-1 t028
7C ~ I ~ I ~ ~ ~ ~ R ) = ? ( ~ , ~ V A R ) ~ 2 ~ L I h V A 4 1 * ~ f K , ~ ~ 1029
TEMPZDA~.FI~~(K~K]) 1030
I F ( T F M P . G ~ . . o Q O O ~ ~ )G O f G P O 3031
DrRfJC=l.g 1032
RETUkN 1033
P C -? C X I N V ~ R ) = R ( K , % V A R ) / R ( # , K ) 1034
C r * * r * t B ~ C ~ S @ L U T I O h s * * h r * a * r * * * * a e * * 1 , k * a ~ ? ~ 3 5
Q~~TNOP')=R[~~~EP,NY&~~ 1036
!?o106 1 n 2 t N l r f D P 1037
J=MYbRaI 1038
IY=t-1 1039
-3 ( J ) = R ( J , ? l V A R ) 10 4 0
0~ 91) La!,rx 1041
r<O.J4C 1042
90 c r J ~ = 8 ( J ~ ~ l l ( K l u R ( J , ~ ) 1043
1 0 ~C ~ ~ ~ ~ I V U E 10411
O;HHC:I), 1045
0 0 110 J = l i t J T U G P 10a6
1t i 0 r s 3 c = o r ~ n c +( aJ I * ~ X ( J , E ~ V A ~ ) 1047
qETUPN f 048
Exo IL C49
FtlrCTTON R R G E Y [ I Y ) 1001
C ~ A N D ~NuHSEa
M S U ~ ~ U U P I FOR
~ E
@ i N A Q Y MACHI'JE
A iOC2
C f i ~ h F ~ b ~IINIFCRV
E 9 Y A N O O P ~ P H ~ E R1t1S rh& ShTtRVAb 0 f ~ l I003
C ';E$FRAL U S ~ G EIS 43 FCLI.81~3 1004
c a=auc~~(~xi 100s
C 5 X 9HPULD S E P h I P I A L I Z E C TI? ZEFO I R TPE B Q C G K A ~ 1006
C I s a s CAN P f & + f Y L A F C E I Ctj0 I Y T E G E S 1007
C C P h 4 T A Y f S !iUST RE C O ' f F V T E D B Y F O L L C - I h G EQUPTIGNS 1038
C x t * * ICO~JI=C~**~CR~~]/Z))+~ * * * * 1509
C a t 1 * :c~?NE=C~**R)-~ * * * a 1010
C t * r r
FCD~J~=~,PC~,**A) * * * a 1011
C hHERE 6 % N ~ ' t n E 2 OF 8 1 1 9 J h THE I N T E G E R U O R D 1012
C 1013
0AYA IAR~/759a%t/ 1014
IF(IARG.EQ.IYI Gn TO 10 1015
XV=EARG 1 0 16
I V P ~ X
ttrul=lS777219
1c r V = T Y * ? C G k l
ICf~2n2R1u74q7b710655
IF(Iv.LT.0) XY=IY+ICOh2+l
f4klr;EtJ=IV
FC0~33.3552713678E-l4
RNGF?~:RHGE:~*FCONS
4FilJRN
END
-
CARD VARIABU
F i r s t specification card.
I d e n t i f i c a t i o n of s t a t i o n s i n prevLous passes t o be
used i n c u r r e n t pass, supply only if PASS (B-7) i s
g r e a t e r than 1. The variables NCOMB, NTNDM, and
NCSTY app1.y to the current pass only.
1. NCOMB - Number of combinations of stations, the totals of -
which are used to obtain maximum and minimum flows,
dimensioned for 2. If positive, provide D and E cards.
2. NTNDM - Number of tandem situations, compares sum of monthly
values of upstream stations with downstream station
and adjusts if value is less than sum and that station's
value has been estimated or generated, dimension for 10.
If positive, provide F card.
3. NCSTY Number of consistency tests. Adjusts standard deviation
of a dependent station in tandem with an independent
station to prevent frequency curves from crossing,
dimensioned for 10. If positive, provide G card.
4. N m - Number of s t a t i o n s from previous passes which a r e t o
be used w i t h t h e a d d i t i o n a l d a t a i n current pass as a
means of maintaining c o n s i s t e n t flows between gmups of
s t a t i o n s , number of s t a t i o n s from previous passes
plus number of new s t a t i o n s dimensioned f o r 10.
5. ISTA - S t a t i o n number of s t a t i o n i n a previous pass which is
t o be used i n current pass (NSTX values). Must be
i n same order as s t a t i o n s f i r s t appear.
EXHIBIT 7
-
CARD VrnI&P
3. AW(K) -
months ) .
Cols 15-20, Average mean logarithm f o r dry season ( 3
months ).
4. SDAV(K) - Cols 21-26, Average standard deviation f o r t h e 12 months.
1. I ~ A ( K ) - m e a s (M-1).
2. B&(I,K) - Cols 9-14, 15-20, ete., Flow increments f o r successive
calendar months.
.
(1) Supply only if ZUTAL ( ~ 3 i) s p s i t f v e
station-year of data before supplying I cad.
%peat H card for each
SlBMMY OF REQUIRED CARDS
ContPnued
'723-X6-L234O