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