NCEPLIBS-bufr
11.7.1
igetntbl.f
Go to the documentation of this file.
1
C> @file
2
C> @brief Read the next line from a master table B, table D or Code/Flag
3
C> table file
4
5
C> This subroutine reads the next line from an ASCII master table B,
6
C> table D or Code/Flag table file, ignoring any blank lines or comment
7
C> lines in the process.
8
C>
9
C> @author J. Ator
10
C> @date 2007-01-19
11
C>
12
C> @param[in] LUNT -- integer: Fortran logical unit number for
13
C> ASCII file containing table information
14
C> @param[out] LINE -- character*(*): Next non-blank, non-comment line
15
C> that was read from LUNT
16
C> @returns igetntbl -- integer: return code
17
C> - 0 = normal return
18
C> - -1 = end-of-file encountered while reading
19
C> from LUNT
20
C> - -2 = I/O error encountered while reading
21
C> from LUNT
22
C>
23
C> <b>Program history log:</b>
24
C> | Date | Programmer | Comments |
25
C> | -----|------------|----------|
26
C> | 2007-01-19 | J. Ator | Original author |
27
C>
28
FUNCTION
igetntbl
( LUNT, LINE )
29
30
character*(*) line
31
32
C-----------------------------------------------------------------------
33
C-----------------------------------------------------------------------
34
35
10
READ
( lunt,
'(A)'
,
END
=100, ERR=200 ) line
36
IF
( ( line .EQ.
' '
) .OR. ( line(1:1) .EQ.
'#'
) )
GOTO
10
37
IF
( line(1:3) .EQ.
'END'
)
GOTO
100
38
39
igetntbl
= 0
40
RETURN
41
42
100
igetntbl
= -1
43
RETURN
44
45
200
igetntbl
= -2
46
RETURN
47
48
END
igetntbl
function igetntbl(LUNT, LINE)
This subroutine reads the next line from an ASCII master table B, table D or Code/Flag table file,...
Definition:
igetntbl.f:29
nceplibs-bufr
src
igetntbl.f
Generated by
1.9.4