9 character(255) :: file !> name of filename to read
10 character(8) :: subset
12 integer,
parameter :: lunit = 20
18 call getarg(1,file); file=trim(adjustl(file))
19 if (file ==
'') call
bort(
'Usage: "gettab bufrfile" will print the internal BUFR table')
20 inquire(file=file,exist=exist)
21 if (.not.exist) call
bort(trim(file)//
' does not exist')
22 call getarg(2,go); go=trim(adjustl(go))
23 open(lunit,file=file,form=
'unformatted')
27 call
openbf(lunit,
'IN',lunit)
28 do while(
ireadmg(lunit,subset,idate).eq.0)
30 print*,
'message date=',
i4dy(idate)
32 if(go.ne.
'q')
read(5,
'(a)') go
function ireadmg(LUNIT, SUBSET, IDATE)
This function calls BUFRLIB subroutine readmg() and passes back its return code as the function value...
function i4dy(IDATE)
This function converts a date-time with a 2-digit year (YYMMDDHH) to a date-time with a 4-digit year ...
function ireadsb(LUNIT)
This function calls BUFRLIB subroutine readsb() and passes back its return code as the function value...
subroutine openbf(LUNIT, IO, LUNDX)
This subroutine connects a new file to the BUFRLIB software for input or output operations.
subroutine ufdump(LUNIT, LUPRT)
This subroutine prints a verbose listing of the contents of a data subset, including all data values ...
subroutine bort(STR)
This subroutine calls subroutine errwrt() to log an error message, then calls subroutine bort_exit() ...