Update version info for release v4.6.1 (#2122)
[WRF.git] / external / io_grib1 / test_read_gribmap.c
blobed1d8516cfefb1d4831f0725ba7c0f202e16a611
1 #include <stdio.h>
2 #include <stdlib.h>
4 #include "gribmap.h"
5 main()
7 int center, subcenter, parmtbl, parm_id, dec_sc_factor;
8 int ret;
9 int idx;
10 Grib_Table_Info grib_table_info;
12 /* get_grib_param_("gribmap.txt","TMN",&center,&subcenter,&parmtbl,&parm_id,&dec_sc_factor);
14 read_gribmap_("gribmap.txt",&grib_table_info,&ret);
16 fprintf(stdout,"%d:%d:%d:%d\n",grib_table_info.center,
17 grib_table_info.subcenter,grib_table_info.parmtbl,
18 grib_table_info.gribid);
20 get_grib_param_(&grib_table_info,"TMN",&idx);
21 fprintf(stdout,"idx: %d\n",idx);