NCEPLIBS-bufr  12.0.1
openmg.f File Reference

Open a new message for output in a BUFR file that was previously opened for writing. More...

Go to the source code of this file.

Functions/Subroutines

recursive subroutine openmg (LUNIT, SUBSET, JDATE)
 This subroutine opens and initializes a new BUFR message within internal arrays, for eventual output to logical unit LUNIT. More...
 

Detailed Description

Open a new message for output in a BUFR file that was previously opened for writing.

Author
J. Woollen
Date
1994-01-06

Definition in file openmg.f.

Function/Subroutine Documentation

◆ openmg()

recursive subroutine openmg (   LUNIT,
character*(*)  SUBSET,
  JDATE 
)

This subroutine opens and initializes a new BUFR message within internal arrays, for eventual output to logical unit LUNIT.

Logical unit LUNIT should have already been opened for output operations via a previous call to subroutine openbf().

This subroutine is similar to subroutine openmb(), except that it will always open a new message for output, regardless of the values of SUBSET and JDATE. Any existing message within the internal arrays will be automatically flushed and written to logical unit LUNIT via an internal call to subroutine closmg().

Parameters
[in]LUNIT– integer: Fortran logical unit number for BUFR file
[in]SUBSET– character*(*): Table A mnemonic for type of BUFR message to be opened (see DX BUFR Tables for further information about Table A mnemonics)
[in]JDATE– integer: Date-time to be stored within Section 1 of BUFR message being opened, in format of either YYMMDDHH or YYYYMMDDHH
Author
J. Woollen
Date
1994-01-06

Definition at line 30 of file openmg.f.

References bort(), closmg(), i4dy(), moda_msgcwd::idate, modv_im8b::im8b, moda_msgcwd::inode, msgini(), nemtba(), status(), usrtpl(), wtstat(), and x84().