96 printf(
"getgridtemplate: GDT Template 3.%d not defined.\n", (
int)number);
140 new->extlen = list[1] * 2;
141 new->ext = malloc(
sizeof(
g2int) * new->extlen);
142 for (i = 0; i <
new->extlen; i++)
150 else if (number == 4)
152 new->extlen = list[7];
153 new->ext = malloc(
sizeof(
g2int) * new->extlen);
154 for (i = 0; i <
new->extlen; i++)
158 new->extlen = list[8];
159 new->ext = malloc(
sizeof(
g2int) * new->extlen);
160 for (i = 0; i <
new->extlen; i++)
165 else if (number == 5)
167 new->extlen = list[7];
168 new->ext = malloc(
sizeof(
g2int) * new->extlen);
169 for (i = 0; i <
new->extlen; i++)
173 new->extlen = list[8];
174 new->ext = malloc(
sizeof(
g2int) * new->extlen);
175 for (i = 0; i <
new->extlen; i++)
180 else if (number == 1000)
182 new->extlen = list[19];
183 new->ext = malloc(
sizeof(
g2int) * new->extlen);
184 for (i = 0; i <
new->extlen; i++)
189 else if (number == 1200)
191 new->extlen = list[15];
192 new->ext = malloc(
sizeof(
g2int) * new->extlen);
193 for (i = 0; i <
new->extlen; i++)
Header file for NCEPLIBS-g2c library.
int64_t g2int
Long integer type.
Struct for GRIB template.
gtemplate * extgridtemplate(g2int number, g2int *list)
This subroutine generates the remaining octet map for a given Grid Definition Template,...
g2int getgridindex(g2int number)
This function returns the index of specified Grid Definition Template in array templates for [Section...
gtemplate * getgridtemplate(g2int number)
This subroutine returns grid template information for a specified Grid Definition Template for [Secti...
This header file contains info on all the available GRIB2 Grid Definition Templates used in Section 3...
g2int template_num
Template number.
#define MAXGRIDTEMP
Maximum number of templates.
g2int needext
Does template need extension?
g2int mapgridlen
The number of entries in the template.
const struct gridtemplate templatesgrid[MAXGRIDTEMP]
Templates grid.