C
C
C
19
C
C
C
C
C
C
C
C498
772
776
497
555
777
C
C
C
778
41
C
Computer Software 165
*******************************************************
DE
TRENDS
DATA
BY SUBTRACTING
MEAN
FROM
EACH
DATA
POINT
************************************************************
DO
19
I=1,
NX
XX(I)=XX(I)
-AM
************************************************************
xx
(I)
ARE THE DETRE
NDED
VALUES :
IF
CONTL=1 THEN XX
(I)
ARE LOG.
TRANSFORMED
AND
DE
TRENDED
VALUES WHI LE
XM(I) ARE THE ORIGINAL VALUES .
OTHER
WISE XM(I) ARE THE
ORIGINAL
VALUES
AND
XX
(I)
ARE THE
DETRENDED
VALUES .
************************************************************
IF
(KEY. EQ. 1 )
GO
TO 77 6
WRI TE( 2 , 498 )
FORMAT
(1X, ' PRI NTS
ACCUMULATIO
N
DATA
'
I)
WRI TE (2 , 5 55 ) (XM(I)
,1
=1,10)
WRI TE (2 ,
772
)
AM
FORMAT
(/14X,
'MEAN
OF
DATA
='F8.2)
GO
TO
778
WRI TE
(2,497)
FORMAT
(/1X,
'PRINTS
DATA
&
LOG
.TRANS.DEV.TAKEN
DATA'I)
WRI TE (2 , 555 ) (XM(I)
,XX(I)
, 1= 1 , 10 )
FORMAT(4X
,10F8.3)
WRI TE
(2,777)AM
FORMAT
(/2X,
'MEAN
OF
TRANSFORMED
DATA
='
F8 . 2)
************************************************************
COMPUTES
AUTO-CORRELATION
THROUGH
SUB-ROUTINE
'SRL.
FOR'
************************************************************
WRI TE (2 , 41 )
FORMAT
(/2X
, 'AUTO.CORRELATION COEFFICIENT FOR
ZERO
LAG'I)
************************************************************
IF(KEY.EQ.O.O)GO
TO
444
c
************************************************************
CALL SRL (XX, CPO, RZERO,WP , R)
c
************************************************************
GO
TO
445
c
************************************************************
444
CALL SRL (XM,CPO,RZERO, WP,R)
C
************************************************************
445
WRI TE (2 , 42 )CPO, RZERO
42 FORMAT(3X
,F10
.2
,4X,F8.2
/)
WRI TE (2 , 43 )
43
FORMAT
(2X, ' AUTOCORRELATI ON COEFFICIENTS FOR
LAGS
1 TO
M')
IF(KEY
.EQ .O .O)GO TO
446
c
************************************************************
CALL SRL (XX, CPO, RZERO,WP , R)
c
************************************************************
GO
TO
447
c
************************************************************
446
CALL SRL(XM,CPO,RZERO, WP,R)