NCEPLIBS-bufr 11.7.1
ireadns.f
Go to the documentation of this file.
1C> @file
2C> @brief Read the next data subset from a BUFR file that was
3C> previously opened for reading.
4
5C> This function calls BUFRLIB subroutine readns() 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
12C> BUFR file
13C> @param[out] SUBSET -- character*8: Table A mnemonic for type of
14C> data subset that was read
15C> (see [DX BUFR Tables](@ref dfbftab)
16C> for further information about Table A mnemonics)
17C> @param[out] IDATE -- integer: Date-time stored within Section 1 of
18C> BUFR message containing data subset that
19C> was read, in format of either
20C> YYMMDDHH or YYYYMMDDHH, depending on the most
21C> recent call to subroutine datelen()
22C> @returns ireadns -- integer:
23C> - 0 = new BUFR data subset was successfully
24C> read into internal arrays
25C> - -1 = there are no more BUFR data subsets in
26C> the file connected to logical unit LUNIT
27C>
28C> @remarks
29C> - The use of this function allows the return code from readns() to be
30C> used as the target variable within an iterative program loop.
31C>
32C> <b>Program history log:</b>
33C> | Date | Programmer | Comments |
34C> | -----|------------|----------|
35C> | 1994-01-06 | J. Woollen | Original author |
36C> | 2002-05-14 | J. Woollen | Changed from an entry point to increase portability to other platforms |
37C>
38 FUNCTION ireadns(LUNIT,SUBSET,IDATE)
39
40 CHARACTER*8 subset
41 CALL readns(lunit,subset,idate,iret)
42 ireadns = iret
43 RETURN
44 END
function ireadns(LUNIT, SUBSET, IDATE)
This function calls BUFRLIB subroutine readns() and passes back its return code as the function value...
Definition: ireadns.f:39
subroutine readns(LUNIT, SUBSET, JDATE, IRET)
This subroutine provides a handy way to combine the functionality of subroutines readmg() and readsb(...
Definition: readns.f:49