NCEPLIBS-bufr  11.5.0
 All Data Structures Files Functions Variables Pages
ireadmg.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Read the next message from a BUFR file that was previously
3 C> opened for reading.
4 
5 C> This function calls BUFRLIB subroutine readmg() and passes
6 C> back its return code as the function value.
7 C>
8 C> @author J. Woollen
9 C> @date 1994-01-06
10 C>
11 C> @param[in] LUNIT - integer: Fortran logical unit number for BUFR file
12 C> @param[out] SUBSET - character*8: Table A mnemonic for type of BUFR
13 C> message that was read
14 C> (see [DX BUFR Tables](@ref dfbftab)
15 C> for further information about Table A mnemonics)
16 C> @param[out] IDATE - integer: date-time stored within Section 1 of
17 C> BUFR message that was read, in format of either
18 C> YYMMDDHH or YYYYMMDDHH, depending on the most
19 C> recent call to subroutine datelen()
20 C> @returns ireadmg - integer:
21 C> - 0 = new BUFR message was successfully
22 C> read into internal arrays
23 C> - -1 = there are no more BUFR messages in the
24 C> file connected to logical unit LUNIT
25 C>
26 C> @remarks
27 C> - The use of this function allows the return code from readmg() to be
28 C> used as the target variable within an iterative program loop.
29 C>
30 C> <b>Program history log:</b>
31 C> - 1994-01-06 J. Woollen -- Original author
32 C> - 1999-11-18 J. Woollen -- Added new function entry points ireadmm and
33 C> ireadibm
34 C> - 2002-05-14 J. Woollen -- Removed entry points icopysb, ireadft,
35 C> ireadibm, ireadmm, ireadns and ireadsb
36 C> (they became separate routines in the
37 C> BUFRLIB to increase portability to other
38 C> platforms)
39 C> - 2003-11-04 S. Bender -- Added remarks and routine interdependencies
40 C> - 2003-11-04 D. Keyser -- Unified/portable for WRF; added history
41 C> documentation
42 C>
43  FUNCTION ireadmg(LUNIT,SUBSET,IDATE)
44 
45  CHARACTER*8 subset
46  CALL readmg(lunit,subset,idate,iret)
47  ireadmg = iret
48  RETURN
49  END
function ireadmg(LUNIT, SUBSET, IDATE)
This function calls BUFRLIB subroutine readmg() and passes back its return code as the function value...
Definition: ireadmg.f:43
subroutine readmg(LUNXX, SUBSET, JDATE, IRET)
This subroutine reads the next BUFR message from logical unit ABS(LUNXX) into internal arrays...
Definition: readmg.f:99