|
NCEPLIBS-g2c
1.6.4
|
Unpack Section 4 (Product Definition Section) as defined in GRIB Edition 2. More...
Go to the source code of this file.
Functions | |
| g2int | g2_unpack4 (unsigned char *cgrib, g2int *iofst, g2int *ipdsnum, g2int **ipdstmpl, g2int *mappdslen, g2float **coordlist, g2int *numcoord) |
| This subroutine unpacks Section 4 (Product Definition Section) as defined in GRIB Edition 2. More... | |
Unpack Section 4 (Product Definition Section) as defined in GRIB Edition 2.
Definition in file g2_unpack4.c.
| g2int g2_unpack4 | ( | unsigned char * | cgrib, |
| g2int * | iofst, | ||
| g2int * | ipdsnum, | ||
| g2int ** | ipdstmpl, | ||
| g2int * | mappdslen, | ||
| g2float ** | coordlist, | ||
| g2int * | numcoord | ||
| ) |
This subroutine unpacks Section 4 (Product 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 | Array containing Section 4 of the GRIB2 message. |
| iofst | Bit offset of the beginning of Section 4 in cgrib. Returned with updated bit offset. |
| ipdsnum | Product Definition Template Number (see Table 4.0). |
| ipdstmpl | Pointer that gets an integer array containing the data values for the Product Definition Template specified by ipdsnum. |
| mappdslen | Number of elements in ipdstmpl - i.e. number of entries in Product Defintion Template specified by ipdsnum. |
| coordlist | Pointer that gets an array containing floating point values intended to document the vertical discretisation associated to model data on hybrid coordinate vertical levels. |
| numcoord | number of values in array coordlist. |
Definition at line 45 of file g2_unpack4.c.
References gtemplate::ext, gtemplate::extlen, extpdstemplate(), gbit(), gbits(), getpdstemplate(), gtemplate::map, gtemplate::maplen, gtemplate::needext, and rdieee().
Referenced by g2_getfld().