Дж. С. Дэвис. Статистический анализ данных в геологии. Книга 2
C * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
C
C CHECKS FOR Q, U OR H
C
C * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
SUBROUTINE QUH(ICH,IQUIT)
COMMON /ASC/ IALPHA(96)
CHARACTER*1 lALPHA,ICH
C
IQUIT = 0
IF(ICH.EQ.IALPHA(50).OR.ICH.EQ.IALPHA(82)) IQUIT = 1
1F(ICH.EQ.IALPHA(54).OR.ICH.EQ.IALPHA(86)) IQUIT = 1
IF(ICH.EQ.IALPHA(41).OR.ICH.EQ.IALPHA(73)) IQUIT = 1
RETURN
END
C * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
C
C WRITES INVALID ENTRY MESSAGE
C
C * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
SUBROUTINE INVLID(IOP)
COMMON /IOLUN/ I5,I6,J5,J6,J4
C
CALL TONE
IF(IOP.EQ.I) WRITE(16,200)
200 FORMAT(/' Invalid entry, Try again ')
IF(IOP.EQ.2) WRITE(I6,201)
201 FORMAT(/' Invalid file name, Try again or press RETURN 10 abort '\
IF(IOP.EQ.3) WRITE(16,202)
202 FORMAT(/' Error - End of file encountered.',
1/,9X,'You must recreate your data file.')
IF(IOP.EQ.4) WRITE(I6,203)
203 FORMAT(/' Error - The dimensions of the data matrix are',
1/,9X, 'invalid for this module.')
IF(IOP.EQ.5) WRITE(I6,204)
204 FORMAT(/' An internal error has occurred in the program.',
1/' Please check if your data is appropriate for this option.')
RETURN
END
C * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
C
C INITIALIZE CHARACTER ARRAYS
C
C * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
SUBROUTINE INITTS
COMMON /FLINDX/ IFLUN(2O)
COMMON /CHAR/ ISOUT(180),LPT
COMMON /TLC/ SAVE(20),LZ,LU,Z1,Z2,D1,D2,NZ,NSTEP,DEPINC,DFLT,UPA
COMMON /FLS/ K5,K6,K7,K8,K9,K10,K11,K12,K13,IPCH,ILP,IPLOT,NCHAN
COMMON /ASC/ IALPHA(96)
DIMENSION JALPHA(96)
COMMON /HEADLN/ IYN(2)
CHARACTER*1 IALPHA,JALPHA,IYN
C
DATA JALPHA '/',',','I','"','#','$','%','&','"','(',')',
2 '*','+',',','-','.','/','0','1','2','3',
3 '4','5','6','7','8','9',':',';','<','=',
4 '>','?','@','A','B','C','D','E','F','G',
5 'H','T','J','K','L','M','N','0','P','Q',
6 'R','S','T','U','V','W','X','Y','Z','[',
7 '\',']','^','_','`','a','b','c','d','e',
8 'f','g','h','i','j','k','l','m','n','o',
9 'p','q','r','s','t','u','v','w','x','y',
1 'z','{','|','}',' ','~','~'/
C
DO 100 I = 1,96
IALPHA(I) = JALPHA(I)
100 CONTINUE
C
C... IYN(1) IS N(0), IYN(2) IS Y(ES)