.TH "g2_unpack6.c" 3 "Fri Jun 3 2022" "Version 1.6.4" "NCEPLIBS-g2c" \" -*- nroff -*- .ad l .nh .SH NAME g2_unpack6.c \- Unpack Section 6 (Bit-Map Section) as defined in GRIB Edition 2\&. .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include 'grib2\&.h'\fP .br .SS "Functions" .in +1c .ti -1c .RI "\fBg2int\fP \fBg2_unpack6\fP (unsigned char *cgrib, \fBg2int\fP *iofst, \fBg2int\fP ngpts, \fBg2int\fP *ibmap, \fBg2int\fP **bmap)" .br .RI "This subroutine unpacks Section 6 (Bit-Map Section) as defined in GRIB Edition 2\&. " .in -1c .SH "Detailed Description" .PP Unpack Section 6 (Bit-Map Section) as defined in GRIB Edition 2\&. .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2002-10-31 .RE .PP .PP Definition in file \fBg2_unpack6\&.c\fP\&. .SH "Function Documentation" .PP .SS "\fBg2int\fP g2_unpack6 (unsigned char * cgrib, \fBg2int\fP * iofst, \fBg2int\fP ngpts, \fBg2int\fP * ibmap, \fBg2int\fP ** bmap)" .PP This subroutine unpacks Section 6 (Bit-Map Section) as defined in GRIB Edition 2\&. .PP \fBParameters\fP .RS 4 \fIcgrib\fP char array containing Section 6 of the GRIB2 message\&. .br \fIiofst\fP Bit offset of the beginning of Section 6 in cgrib\&. .br \fIngpts\fP Number of grid points specified in the bit-map .br \fIibmap\fP Bitmap indicator (see Code Table 6\&.0) .IP "\(bu" 2 0 bitmap applies and is included in Section 6\&. .IP "\(bu" 2 1-253 Predefined bitmap applies .IP "\(bu" 2 254 Previously defined bitmap applies to this field .IP "\(bu" 2 255 Bit map does not apply to this product\&. .PP .br \fIbmap\fP Pointer to an integer array containing decoded bitmap\&. (if ibmap=0) .RE .PP \fBReturns\fP .RS 4 .IP "\(bu" 2 0 no error .IP "\(bu" 2 2 Not Section 6 .IP "\(bu" 2 4 Unrecognized pre-defined bit-map\&. .IP "\(bu" 2 6 memory allocation error .PP .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2002-10-31 .RE .PP .PP Definition at line 33 of file g2_unpack6\&.c\&. .PP References gbit(), and gbits()\&. .PP Referenced by g2_getfld()\&. .SH "Author" .PP Generated automatically by Doxygen for NCEPLIBS-g2c from the source code\&.