NCEPLIBS-bufr
11.5.0
|
Read the next data subset from a BUFR message. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine | readsb (LUNIT, IRET) |
This subroutine reads the next data subset from a BUFR message into internal arrays. More... | |
Read the next data subset from a BUFR message.
Definition in file readsb.f.
subroutine readsb | ( | LUNIT, | |
IRET | |||
) |
This subroutine reads the next data subset from a BUFR message into internal arrays.
[in] | LUNIT | - integer: Fortran logical unit number for BUFR file |
[out] | IRET | - integer: return code
|
Logical unit LUNIT should have already been opened for input operations via a previous call to subroutine openbf(), and a BUFR message should have already been read into internal arrays via a previous call to one of the message-reading subroutines.
Whenever this subroutine returns with IRET = 0, this indicates that a new BUFR data subset (i.e. report) was successfully read into internal arrays within the BUFRLIB software, and from where it can then be easily manipulated or further parsed via calls to any of the values-reading subroutines. Otherwise, if the subroutine returns with IRET = -1, then this indicates that there are no more data subsets available within the current message, and therefore that a new call needs to be made to one of the message-reading subroutines in order to read in the next message from logical unit LUNIT.
Program history log:
Definition at line 59 of file readsb.f.
References bort(), rdcmps(), rdtree(), status(), and upb().
Referenced by copysb(), ireadsb(), rdmems(), rdmgsb(), readns(), ufbinx(), and ufbpos().