1 PROGRAM test_read_grib2map
7 Subroutine load_grib2map (filename, grib2tbls)
9 character*(*), intent(in) :: filename
10 TYPE(grib2tbls_type), dimension(:), pointer :: grib2tbls
11 END subroutine load_grib2map
14 TYPE(grib2tbls_type), dimension(:), pointer :: grib2tbls
15 character(200) :: filename = 'grib2map.tbl'
17 character*30 :: parmname
18 integer :: center, subcenter, MasterTblV, LocalTblV, &
19 Disc, Category, ParmNum, DecScl, BinScl
23 CALL load_grib2map(filename,grib2tbls)
26 CALL get_parminfo(parmname, center, subcenter, MasterTblV, &
27 LocalTblV, Disc, Category, ParmNum, DecScl, BinScl, ierr)
30 print *,'Could not find match for parameter: ',parmname
32 print *,'Found match: '
33 print *, ' center: ',center
34 print *, ' subcenter: ',subcenter
35 print *, ' MasterTblV ',MasterTblV
36 print *, ' LocalTblV ',LocalTblV
37 print *, ' Disc ',Disc
38 print *, ' Category ',Category
39 print *, ' ParmNum ',ParmNum
40 print *, ' DecScl ',DecScl
41 print *, ' BinScl ',BinScl
44 CALL free_grib2map(grib2tbls)