g2_unpack3.c(3) | Library Functions Manual | g2_unpack3.c(3) |
g2_unpack3.c - Unpack Section 3 (Grid Definition Section) of a GRIB2 message.
#include 'grib2_int.h'
#include <stdio.h>
#include <stdlib.h>
g2int g2_unpack3 (unsigned char *cgrib, g2int
*iofst, g2int **igds, g2int **igdstmpl, g2int
*mapgridlen, g2int **ideflist, g2int *idefnum)
Unpack Section 3 (Grid Definition Section) of a GRIB2 message.
Unpack Section 3 (Grid Definition Section) of a GRIB2 message.
Author
Date
Definition in file g2_unpack3.c.
Unpack Section 3 (Grid Definition Section) of a GRIB2 message.
Date Programmer Comments 2002-10-31 Gilbert Initial 2009-01-14 Vuong Changed structure name template to gtemplate
Parameters
igdstmpl Pointer a pointer to g2int, which will get a
pointer to an allocated array that contians containing the data values from
the Grid Definition Template specified by igds[4].
mapgridlen A pointer tat gets the 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] != 0.) A pointer that gets the number of
entries in array ideflist - i.e. number of rows (or columns) for which
optional grid points are defined.
Returns
Author
Date
Definition at line 62 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().
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.
Version 2.1.0 | NCEPLIBS-g2c |