NCEPLIBS-bufr
11.5.0
Main Page
Related Pages
Data Types List
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Pages
igetntbl.f
Go to the documentation of this file.
1
C> @file
2
C> @author ATOR @date 2007-01-19
3
4
C> THIS FUNCTION GETS THE NEXT LINE FROM THE ASCII MASTER
5
C> TABLE FILE SPECIFIED BY LUNT, IGNORING ANY BLANK LINES OR COMMENT
6
C> LINES IN THE PROCESS.
7
C>
8
C> PROGRAM HISTORY LOG:
9
C> 2007-01-19 J. ATOR -- ORIGINAL AUTHOR
10
C>
11
C> USAGE: IGETNTBL ( LUNT, LINE )
12
C> INPUT ARGUMENT LIST:
13
C> LUNT - INTEGER: FORTRAN LOGICAL UNIT NUMBER OF ASCII FILE
14
C> CONTAINING MASTER TABLE INFORMATION
15
C>
16
C> OUTPUT ARGUMENT LIST:
17
C> LINE - CHARACTER*(*): NEXT NON-BLANK, NON-COMMENT LINE READ
18
C> FROM LUNT
19
C> IGETNTBL - INTEGER: RETURN CODE:
20
C> 0 = normal return
21
C> -1 = end-of-file encountered while reading
22
C> from LUNT
23
C> -2 = I/O error encountered while reading
24
C> from LUNT
25
C> REMARKS:
26
C> THIS ROUTINE CALLS: None
27
C> THIS ROUTINE IS CALLED BY: GETNTBE GETTBH SNTBDE SNTBFE
28
C> Normally not called by any application
29
C> programs.
30
C>
31
FUNCTION
igetntbl
( LUNT, LINE )
32
33
34
35
character*(*) line
36
37
C-----------------------------------------------------------------------
38
C-----------------------------------------------------------------------
39
40
10
READ
( lunt,
'(A)'
, end=100, err=200 ) line
41
IF
( ( line .EQ.
' '
) .OR. ( line(1:1) .EQ.
'#'
) ) goto 10
42
IF
( line(1:3) .EQ.
'END'
) goto 100
43
44
igetntbl
= 0
45
RETURN
46
47
100
igetntbl
= -1
48
RETURN
49
50
200
igetntbl
= -2
51
RETURN
52
53
END
igetntbl
function igetntbl(LUNT, LINE)
THIS FUNCTION GETS THE NEXT LINE FROM THE ASCII MASTER TABLE FILE SPECIFIED BY LUNT, IGNORING ANY BLANK LINES OR COMMENT LINES IN THE PROCESS.
Definition:
igetntbl.f:31
nceplibs-bufr
src
igetntbl.f
Generated by
1.8.5