NCEPLIBS-bufr
11.5.0
|
Read the Section 1 date-time from the first data message of a BUFR file. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine | datebf (LUNIT, MEAR, MMON, MDAY, MOUR, IDATE) |
This subroutine reads and returns the Section 1 date-time from the first data message of a BUFR file, bypassing any messages at the beginning of the file which may contain embedded DX BUFR table information. More... | |
Read the Section 1 date-time from the first data message of a BUFR file.
Definition in file datebf.F.
subroutine datebf | ( | LUNIT, | |
MEAR, | |||
MMON, | |||
MDAY, | |||
MOUR, | |||
IDATE | |||
) |
This subroutine reads and returns the Section 1 date-time from the first data message of a BUFR file, bypassing any messages at the beginning of the file which may contain embedded DX BUFR table information.
[in] | LUNIT | - integer: Fortran logical unit number for BUFR file |
[out] | MEAR | - integer: Year stored within Section 1 of first data message, in format of either YY or YYYY, depending on the most recent call to subroutine datelen() |
[out] | MMON | - integer: Month stored within Section 1 of first data message |
[out] | MDAY | - integer: Day stored within Section 1 of first data message |
[out] | MOUR | - integer: Hour stored within Section 1 of first data message |
[out] | IDATE | - integer: Date-time stored within Section 1 of first data message, in format of either YYMMDDHH or YYYYMMDDHH, depending on the most recent call to subroutine datelen() |
Logical unit LUNIT must already be associated with a filename on the local system, typically via a Fortran "OPEN" statement.
Program history log:
Definition at line 60 of file datebf.F.
References bort(), closbf(), errwrt(), idxmsg(), igetdate(), openbf(), rdmsgw(), status(), and wrdlen().