10 character(8) :: subset
12 integer,
parameter :: lunit = 20
13 integer :: idate,ireadmg,ireadsb,i4dy
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)
29 do while(ireadsb(lunit).eq.0)
30 print*,
'message date=',i4dy(idate)
32 if(go.ne.
'q')
read(5,
'(a)') go
subroutine bort(STR)
This subroutine calls subroutine errwrt() to log an error message, then calls subroutine bort_exit() ...
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 ...