26 character*240 cdxtbl, cbffil
28 integer,
parameter :: lunin = 10, lundx = 11, lunot = 12
34 narg = command_argument_count()
36 print *,
'Usage: apxdx BUFRfile DXtable'
39 call get_command_argument( 1, cbffil )
40 inquire ( file = cbffil, exist = exists )
41 if ( .not. exists )
then
42 print *,
'Specified BUFR file ' // trim(cbffil) //
' does not exist'
45 call get_command_argument( 2, cdxtbl )
46 inquire ( file = cdxtbl, exist = exists )
47 if ( .not. exists )
then
48 print *,
'Specified DX table ' // trim(cdxtbl) //
' does not exist'
53 cdxtbl = trim(cdxtbl) // char(0)
54 open ( unit = lundx, file = cdxtbl )
55 call openbf ( lunin,
'INUL', lundx )
58 cbffil = trim(cbffil) // char(0)
59 open ( unit = lunot, file = cbffil, form =
'unformatted' )
60 call openbf ( lunot,
'APX', lunot )
63 call wrdxtb ( lunin, lunot )
program apxdx
Generate BUFR messages corresponding to a given DX BUFR table and append them to a given BUFR file.
recursive subroutine wrdxtb(lundx, lunot)
Generate one or more BUFR messages from the DX BUFR tables information associated with a given BUFR f...
recursive subroutine closbf(lunit)
Close the connection between logical unit lunit and the NCEPLIBS-bufr software.
recursive subroutine openbf(lunit, io, lundx)
Connect a new file to the NCEPLIBS-bufr software for input or output operations, or initialize the li...