NCEPLIBS-bufr  11.7.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> | Date | Programmer | Comments |
32 C> | -----|------------|----------|
33 C> | 1994-01-06 | J. Woollen | Original author |
34 C> | 1999-11-18 | J. Woollen | Added new function entry points ireadmm and ireadibm |
35 C> | 2002-05-14 | J. Woollen | Removed entry points icopysb, ireadft, ireadibm, ireadmm, ireadns and ireadsb (they became separate routines in the BUFRLIB) |
36 C> | 2003-11-04 | S. Bender | Added remarks and routine interdependencies |
37 C> | 2003-11-04 | D. Keyser | Unified/portable for WRF; added history documentation |
38 C>
39  FUNCTION ireadmg(LUNIT,SUBSET,IDATE)
40 
41  CHARACTER*8 subset
42  CALL readmg(lunit,subset,idate,iret)
43  ireadmg = iret
44  RETURN
45  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:39
subroutine readmg(LUNXX, SUBSET, JDATE, IRET)
This subroutine reads the next BUFR message from logical unit ABS(LUNXX) into internal arrays...
Definition: readmg.f:73