NCEPLIBS-bufr  12.0.0
datebf.f File Reference

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

recursive 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...
 

Detailed Description

Read the Section 1 date-time from the first data message of a BUFR file.

Author
J. Woollen
Date
1994-01-06

Definition in file datebf.f.

Function/Subroutine Documentation

◆ datebf()

recursive 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.

Parameters
[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.

Author
J. Woollen
Date
1994-01-06

Definition at line 33 of file datebf.f.

References bort(), closbf(), errwrt(), idxmsg(), igetdate(), modv_im8b::im8b, moda_mgwa::mgwa, openbf(), rdmsgw(), status(), x48(), and x84().