Provided by: libg2c-dev_1.6.4-3_amd64
NAME
g2_unpack6.c - Unpack Section 6 (Bit-Map Section) as defined in GRIB Edition 2.
SYNOPSIS
#include <stdio.h> #include <stdlib.h> #include 'grib2.h' 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.
Detailed Description
Unpack Section 6 (Bit-Map Section) as defined in GRIB Edition 2. Author Stephen Gilbert Date 2002-10-31 Definition in file g2_unpack6.c.
Function Documentation
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. Parameters 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) • 0 bitmap applies and is included in Section 6. • 1-253 Predefined bitmap applies • 254 Previously defined bitmap applies to this field • 255 Bit map does not apply to this product. bmap Pointer to an integer array containing decoded bitmap. (if ibmap=0) Returns • 0 no error • 2 Not Section 6 • 4 Unrecognized pre-defined bit-map. • 6 memory allocation error Author Stephen Gilbert Date 2002-10-31 Definition at line 33 of file g2_unpack6.c. References gbit(), and gbits(). Referenced by g2_getfld().
Author
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.