NCEPLIBS-g2c
1.7.0
|
Unpack Section 6 (Bit-Map Section) as defined in GRIB Edition 2. More...
Go to the source code of this file.
Functions | |
g2int | g2_unpack6 (unsigned char *cgrib, g2int *iofst, g2int ngpts, g2int *ibmap, g2int **bmap) |
This subroutine unpacks Section 6 (Bit-Map Section) as defined in GRIB Edition 2. More... | |
Unpack Section 6 (Bit-Map Section) as defined in GRIB Edition 2.
Definition in file g2_unpack6.c.
g2int g2_unpack6 | ( | unsigned char * | cgrib, |
g2int * | iofst, | ||
g2int | ngpts, | ||
g2int * | ibmap, | ||
g2int ** | bmap | ||
) |
This subroutine unpacks Section 6 (Bit-Map Section) as defined in GRIB Edition 2.
cgrib | char array containing Section 6 of the GRIB2 message. |
iofst | Bit offset of the beginning of Section 6 in cgrib. |
ngpts | Number of grid points specified in the bit-map |
ibmap | Bitmap indicator (see Code Table 6.0)
|
bmap | Pointer to an integer array containing decoded bitmap. (if ibmap=0) |
Definition at line 33 of file g2_unpack6.c.
References G2_NO_ERROR, G2_UNPACK_BAD_SEC, G2_UNPACK_NO_MEM, gbit(), and gbits().
Referenced by g2_getfld().