NCEPLIBS-g2tmpl  1.12.0
sort_params_grib2_tbl.F90
Go to the documentation of this file.
1 
4 
15  integer idisc,icatg,iparm,locflg
16  character*255 fl_nametbl
17  locflg=0
18  idisc=0
19  icatg=0
20  iparm=0
21 
22  ! Opens and reads the GRIB2 Code Table 4.2 into an internal memory structure.
23  !
24  fl_nametbl='params_grib2_tbl_new'
25  call open_and_read_4dot2( fl_nametbl, ierr )
26  if ( ierr .ne. 0 ) then
27  print*, 'Couldnt open table file - return code was ',ierr
28  endif
29 
30  ! Sorts and writes the GRIB2 Code Table 4.2 to an output file.
31 
32  fl_nametbl='params_grib2_tbl_new'
33  call sort_and_write_4dot2( fl_nametbl, ierr )
34  print *, ""
35  print *, " The output params_grib2_tbl_new file sorted."
36  print *, ""
37  if ( ierr .ne. 0 ) then
38  print*, 'Couldnt open output file - return code was ',ierr
39  endif
40  stop
41 end Program sort_params_grib2_tbl
Define the variables in the derived data type discipline provided in Section 0.
void open_and_read_4dot2(char *, f77int *)
Opens and reads the GRIB2 Code Table 4.2 into an internal memory structure.
void sort_and_write_4dot2(char *, f77int *)
Sorts the contents of GRIB2 Code Table 4.2 within the internal memory structure and writes the output...
program sort_params_grib2_tbl
This program reads params_grib2_tbl_new.text and writes the output file will be sorted with a format ...