NCEPLIBS-bufr 11.7.1
gettab.f90
Go to the documentation of this file.
1
5
6program gettab
7
8 implicit none
9
10 character(len=255) :: file
11 integer, parameter :: lunit = 20
12 logical :: exist
13
14! get the filename to open and read
15
16 call getarg(1,file); file=trim(adjustl(file))
17 if (file == '') call bort('Usage: "gettab bufrfile" will print the internal BUFR table')
18 inquire(file=file,exist=exist)
19 if (.not.exist) call bort(trim(file)//' does not exist')
20
21! open the file and dump the bufr table to standard outout
22
23 open(lunit,file=file,status='old', form='unformatted')
24 call openbf(lunit, 'IN', lunit)
25 call dxdump(lunit, 6)
26 call closbf(lunit)
27 close(lunit)
28
29 stop
30end program gettab
31
subroutine bort(STR)
This subroutine calls subroutine errwrt() to log an error message, then calls subroutine bort_exit() ...
Definition: bort.f:23
subroutine closbf(LUNIT)
This subroutine closes the connection between logical unit LUNIT and the BUFRLIB software.
Definition: closbf.f:35
subroutine dxdump(LUNIT, LDXOT)
This subroutine prints a copy of the DX BUFR table associated with a specified Fortran logical unit.
Definition: dxdump.f:46
subroutine openbf(LUNIT, IO, LUNDX)
This subroutine connects a new file to the BUFRLIB software for input or output operations.
Definition: openbf.f:139
subroutine status(LUNIT, LUN, IL, IM)
This subroutine checks whether a specified Fortran logical unit number is currently connected to the ...
Definition: status.f:56