30 RECURSIVE SUBROUTINE openmg(LUNIT,SUBSET,JDATE)
46 CALL x84(lunit,my_lunit,1)
47 CALL x84(jdate,my_jdate,1)
48 CALL openmg(my_lunit,subset,my_jdate)
57 CALL status(lunit,lun,il,im)
60 IF(im.NE.0)
CALL closmg(lunit)
61 CALL wtstat(lunit,lun,il, 1)
67 CALL nemtba(lun,subset,mtyp,mstb,inod)
83 900
CALL bort(
'BUFRLIB: OPENMG - OUTPUT BUFR FILE IS CLOSED, IT '//
84 .
'MUST BE OPEN FOR OUTPUT')
85 901
CALL bort(
'BUFRLIB: OPENMG - OUTPUT BUFR FILE IS OPEN FOR '//
86 .
'INPUT, IT MUST BE OPEN FOR OUTPUT')
subroutine bort(STR)
Log one error message and abort application program.
recursive subroutine closmg(LUNIN)
This subroutine closes the BUFR message that is currently open for writing within internal arrays ass...
recursive function i4dy(IDATE)
This function converts a date-time with a 2-digit year (YYMMDDHH) to a date-time with a 4-digit year ...
subroutine msgini(LUN)
This subroutine initializes, within the internal arrays, a new uncompressed BUFR message for output.
This module contains declarations for arrays used to store information about the current BUFR message...
integer, dimension(:), allocatable inode
Table A mnemonic for type of BUFR message.
integer, dimension(:), allocatable idate
Section 1 date-time of message.
This module declares and initializes the IM8B variable.
logical, public im8b
Status indicator to keep track of whether all future calls to BUFRLIB subroutines and functions from ...
subroutine nemtba(LUN, NEMO, MTYP, MSBT, INOD)
This subroutine searches for a descriptor within Table A of the internal DX BUFR tables.
recursive subroutine openmg(LUNIT, SUBSET, JDATE)
This subroutine opens and initializes a new BUFR message within internal arrays, for eventual output ...
recursive subroutine status(LUNIT, LUN, IL, IM)
Check whether a specified Fortran logical unit number is currently connected to the NCEPLIBS-bufr sof...
subroutine usrtpl(LUN, INVN, NBMP)
Store the subset template into internal arrays.
subroutine wtstat(LUNIT, LUN, IL, IM)
Update file status in library internals.
subroutine x84(IIN8, IOUT4, NVAL)
Encode one or more 8-byte integer values as 4-byte integer values.