NCEPLIBS-g2c 1.9.0
|
Unpack Section 1 (Identification Section) of a GRIB2 message. More...
Go to the source code of this file.
Functions | |
g2int | g2_unpack1 (unsigned char *cgrib, g2int *iofst, g2int **ids, g2int *idslen) |
Unpacks Section 1 - Identification Section of a GRIB2 message. | |
Unpack Section 1 (Identification Section) of a GRIB2 message.
Definition in file g2_unpack1.c.
Unpacks Section 1 - Identification Section of a GRIB2 message.
cgrib | char array containing Section 1 of the GRIB2 message. |
iofst | Bit offset for the beginning of Section 1 in cgrib. |
ids | Pointer that gets an array which contians the information read from Section 1, the Identification section. This array is allocated by this function, and must be freed by caller (using g2_free()).
|
idslen | Number of elements in ids. |
Definition at line 55 of file g2_unpack1.c.
References G2_NO_ERROR, G2_UNPACK_BAD_SEC, G2_UNPACK_NO_MEM, and gbit().
Referenced by g2_getfld().