NCEPLIBS-bufr
11.5.0
|
Read the next data subset from a BUFR file that was previously opened for reading. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine | readns (LUNIT, SUBSET, JDATE, IRET) |
This subroutine provides a handy way to combine the functionality of subroutines readmg() and readsb() within a single subroutine call. More... | |
Read the next data subset from a BUFR file that was previously opened for reading.
Definition in file readns.f.
subroutine readns | ( | LUNIT, | |
character*8 | SUBSET, | ||
JDATE, | |||
IRET | |||
) |
This subroutine provides a handy way to combine the functionality of subroutines readmg() and readsb() within a single subroutine call.
[in] | LUNIT | - integer: Fortran logical unit number for BUFR file |
[out] | SUBSET | - character*8: Table A mnemonic for type of data subset that was read (see DX BUFR Tables for further information about Table A mnemonics) |
[out] | JDATE | - integer: Date-time stored within Section 1 of BUFR message containing data subset that was read, in format of either YYMMDDHH or YYYYMMDDHH, depending on the most recent call to subroutine datelen() |
[out] | IRET | - integer: return code
|
Logical unit LUNIT should have already been opened for input operations via a previous call to subroutine openbf(). But once that is done, the application program can immediately call this subroutine to read each new data subset from the associated BUFR file, and the subroutine will automatically open and close each new BUFR message internally as needed, so that subsequent calls can immediately be made to any of the various values-reading subroutines.
Program history log:
Definition at line 54 of file readns.f.
References bort(), readmg(), readsb(), and status().
Referenced by ireadns().