NCEPLIBS-g2c
1.7.0
|
Unpack Section 3 (Grid Definition Section) as defined in GRIB Edition 2. More...
Go to the source code of this file.
Functions | |
g2int | g2_unpack3 (unsigned char *cgrib, g2int *iofst, g2int **igds, g2int **igdstmpl, g2int *mapgridlen, g2int **ideflist, g2int *idefnum) |
This routine unpacks Section 3 (Grid Definition Section) as defined in GRIB Edition 2. More... | |
Unpack Section 3 (Grid Definition Section) as defined in GRIB Edition 2.
Definition in file g2_unpack3.c.
g2int g2_unpack3 | ( | unsigned char * | cgrib, |
g2int * | iofst, | ||
g2int ** | igds, | ||
g2int ** | igdstmpl, | ||
g2int * | mapgridlen, | ||
g2int ** | ideflist, | ||
g2int * | idefnum | ||
) |
This routine unpacks Section 3 (Grid Definition Section) as defined in GRIB Edition 2.
Date | Programmer | Comments |
---|---|---|
2002-10-31 | Gilbert | Initial |
2009-01-14 | Vuong | Changed structure name template to gtemplate |
cgrib | Char array ontaining Section 3 of the GRIB2 message. |
iofst | Bit offset for the beginning of Section 3 in cgrib. |
igds | Contains information read from the appropriate GRIB Grid Definition Section 3 for the field being returned.
|
igdstmpl | Pointer to integer array containing the data values for the Grid Definition Template specified by igds[4]. |
mapgridlen | Number of elements in igdstmpl. i.e. number of entries in Grid Defintion Template specified by igds[4]. |
ideflist | (Used if igds[2] .ne. 0) Pointer to integer array containing the number of grid points contained in each row (or column). |
idefnum | (Used if igds[2] .ne. 0) The number of entries in array ideflist - i.e. number of rows (or columns) for which optional grid points are defined. |
Definition at line 57 of file g2_unpack3.c.
References gtemplate::ext, extgridtemplate(), gtemplate::extlen, G2_NO_ERROR, G2_UNPACK3_BAD_GDT, G2_UNPACK_BAD_SEC, G2_UNPACK_NO_MEM, gbit(), gbits(), getgridtemplate(), gtemplate::map, gtemplate::maplen, and gtemplate::needext.
Referenced by g2_getfld(), getdim(), and getpoly().