57 SUBROUTINE rdmtbd ( LUNSTD, LUNLTD, MXMTBD, MXELEM,
58 . IMT, IMTV, IOGCE, ILTV,
59 . NMTBD, IMFXYN, CMMNEM, CMDSC, CMSEQ,
60 . NMELEM, IEFXYN, CEELEM )
62 CHARACTER*200 STLINE, LTLINE
63 CHARACTER*128 BORT_STR
64 CHARACTER*120 CEELEM(MXMTBD,MXELEM)
65 CHARACTER*6 CMATCH, ADN30
67 CHARACTER CMSEQ(120,*)
70 INTEGER IMFXYN(*), NMELEM(*),
71 . iefxyn(mxmtbd,mxelem)
83 CALL gettbh ( lunstd, lunltd,
'D', imt, imtv, iogce, iltv )
89 CALL getntbe ( lunstd, isfxyn, stline, iers )
90 CALL getntbe ( lunltd, ilfxyn, ltline, ierl )
91 DO WHILE ( ( iers .EQ. 0 ) .OR. ( ierl .EQ. 0 ) )
92 IF ( ( iers .EQ. 0 ) .AND. ( ierl .EQ. 0 ) )
THEN
93 IF ( isfxyn .EQ. ilfxyn )
THEN
94 cmatch = adn30( isfxyn, 6 )
96 ELSE IF ( isfxyn .LT. ilfxyn )
THEN
97 CALL sntbde ( lunstd, isfxyn, stline, mxmtbd, mxelem,
98 . nmtbd, imfxyn, cmmnem, cmdsc, cmseq,
99 . nmelem, iefxyn, ceelem )
100 CALL getntbe ( lunstd, isfxyn, stline, iers )
102 CALL sntbde ( lunltd, ilfxyn, ltline, mxmtbd, mxelem,
103 . nmtbd, imfxyn, cmmnem, cmdsc, cmseq,
104 . nmelem, iefxyn, ceelem )
105 CALL getntbe ( lunltd, ilfxyn, ltline, ierl )
107 ELSE IF ( iers .EQ. 0 )
THEN
108 CALL sntbde ( lunstd, isfxyn, stline, mxmtbd, mxelem,
109 . nmtbd, imfxyn, cmmnem, cmdsc, cmseq,
110 . nmelem, iefxyn, ceelem )
111 CALL getntbe ( lunstd, isfxyn, stline, iers )
112 ELSE IF ( ierl .EQ. 0 )
THEN
113 CALL sntbde ( lunltd, ilfxyn, ltline, mxmtbd, mxelem,
114 . nmtbd, imfxyn, cmmnem, cmdsc, cmseq,
115 . nmelem, iefxyn, ceelem )
116 CALL getntbe ( lunltd, ilfxyn, ltline, ierl )
121 900
WRITE(bort_str,
'("BUFRLIB: RDMTBD - STANDARD AND LOCAL'//
122 .
' TABLE D FILES BOTH CONTAIN SAME FXY NUMBER: ",5A)')
123 . cmatch(1:1),
'-', cmatch(2:3),
'-', cmatch(4:6)
subroutine bort(STR)
Log one error message and abort application program.
subroutine getntbe(LUNT, IFXYN, LINE, IRET)
This subroutine reads the first line of the next entry from the specified ASCII master table B,...
subroutine gettbh(LUNS, LUNL, TAB, IMT, IMTV, IOGCE, ILTV)
This subroutine reads the header lines from two separate ASCII files (one standard and one local) con...
subroutine rdmtbd(LUNSTD, LUNLTD, MXMTBD, MXELEM, IMT, IMTV, IOGCE, ILTV, NMTBD, IMFXYN, CMMNEM, CMDSC, CMSEQ, NMELEM, IEFXYN, CEELEM)
This subroutine reads master Table D information from two separate ASCII files (one standard and one ...
subroutine sntbde(LUNT, IFXYN, LINE, MXMTBD, MXELEM, NMTBD, IMFXYN, CMMNEM, CMDSC, CMSEQ, NMELEM, IEFXYN, CEELEM)
This subroutine stores the first line of an entry that was previously read from an ASCII master Table...
subroutine wrdlen
Determine important information about the local machine.