NCEPLIBS-bufr
11.5.0
|
Connect a new system file to the BUFRLIB software, and read the entire file contents into internal arrays. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine | ufbmem (LUNIT, INEW, IRET, IUNIT) |
This subroutine connects a new system file to the BUFRLIB software for input operations, then reads the entire file contents into internal arrays so that any of the individual BUFR messages can later be accessed from memory, instead of having to read them one at a time sequentially from the system file. More... | |
Connect a new system file to the BUFRLIB software, and read the entire file contents into internal arrays.
Definition in file ufbmem.f.
subroutine ufbmem | ( | LUNIT, | |
INEW, | |||
IRET, | |||
IUNIT | |||
) |
This subroutine connects a new system file to the BUFRLIB software for input operations, then reads the entire file contents into internal arrays so that any of the individual BUFR messages can later be accessed from memory, instead of having to read them one at a time sequentially from the system file.
Any embedded DX BUFR tables contained within the file are also read and processed into separate internal arrays for later use.
[in] | LUNIT | - integer: Fortran logical unit number for BUFR file |
[in] | INEW | - integer: Processing option
|
[out] | IRET | - integer: Number of BUFR messages that were read from LUNIT and stored into internal arrays |
[out] | IUNIT | - integer: File status
|
Logical unit number LUNIT must already be associated with an actual filename on the local system, typically via a Fortran "OPEN" statement.
When INEW = 0, the output value IUNIT will be set equal to the input value LUNIT. Otherwise, the output value IUNIT will be set to the value of LUNIT that was input when this subroutine was previously called with INEW = 0, and the system file connected to LUNIT will be closed via an internal call to subroutine closbf() before exiting this subroutine. In either case, IUNIT can now be used to access all BUFR messages that were read and stored by all previous calls to this subroutine.
Program history log:
Definition at line 76 of file ufbmem.f.
References backbufr(), bort(), cewind(), closbf(), cpdxmm(), errwrt(), idxmsg(), nmwrd(), openbf(), rdmsgw(), and status().