11 GribParameters gribmap
;
14 char infile
[] = "/home/tahutchinson/projects/venture/config/grib/gribmap.txt";
18 * This function indexes the grib file and fills the gribinfo
19 * structure. It needs to be called before any other
22 status
= rg_setup_gribmap(&gribmap
,infile
);
24 status
= rg_gribmap_parameter(&gribmap
,"UGRD",-1,&entry
);
25 fprintf(stderr
,"%d %d %d %d %s %s\n",
26 entry
.center
, entry
.subcenter
, entry
.table
, entry
.parmid
,
27 entry
.name
, entry
.comment
);
29 status
= rg_gribmap_parameter(&gribmap
,"BouPTYPE",204,&entry
);
30 fprintf(stderr
,"%d %d %d %d %s %s\n",
31 entry
.center
, entry
.subcenter
, entry
.table
, entry
.parmid
,
32 entry
.name
, entry
.comment
);
34 rg_free_gribmap_elements(&gribmap
);