NCEPLIBS-bufr  11.5.0
 All Data Structures Files Functions Variables Pages
ireadsb.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Read the next data subset from a BUFR message
3 
4 C> This function calls BUFRLIB subroutine readsb() and
5 C> passes back its return code as the function value.
6 C>
7 C> @author J. Woollen
8 C> @date 1994-01-06
9 C>
10 C> @param[in] LUNIT - integer: Fortran logical unit number for
11 C> BUFR file
12 C> @returns ireadsb - integer:
13 C> - 0 = new BUFR data subset was successfully
14 C> read into internal arrays
15 C> - -1 = there are no more BUFR data subsets in
16 C> the BUFR message
17 C>
18 C> @remarks
19 C> - The use of this function allows the return code from readsb() to be
20 C> used as the target variable within an iterative program loop.
21 C>
22 C> <b>Program history log:</b>
23 C> - 1994-01-06 J. Woollen -- Original author
24 C> - 2002-05-14 J. Woollen -- Changed from an entry point to increase
25 C> portability to other platforms
26 C> - 2003-11-04 S. Bender -- Added remarks and routine interdependencies
27 C> - 2003-11-04 D. Keyser -- Unified/portable for WRF; added history
28 C> documentation
29 C>
30  FUNCTION ireadsb(LUNIT)
31 
32  CALL readsb(lunit,iret)
33  ireadsb = iret
34  RETURN
35  END
function ireadsb(LUNIT)
This function calls BUFRLIB subroutine readsb() and passes back its return code as the function value...
Definition: ireadsb.f:30
subroutine readsb(LUNIT, IRET)
This subroutine reads the next data subset from a BUFR message into internal arrays.
Definition: readsb.f:59