NCEPLIBS-g2c
1.8.0
|
Unpack Section 1 (Identification Section) as defined in GRIB Edition 2. More...
Go to the source code of this file.
Functions | |
g2int | g2_unpack1 (unsigned char *cgrib, g2int *iofst, g2int **ids, g2int *idslen) |
This subroutine unpacks Section 1 - Identification Section as defined in GRIB Edition 2. More... | |
Unpack Section 1 (Identification Section) as defined in GRIB Edition 2.
Definition in file g2_unpack1.c.
This subroutine unpacks Section 1 - Identification Section as defined in GRIB Edition 2.
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().