.TH "g2_unpack5.c" 3 "Fri Jun 3 2022" "Version 1.6.4" "NCEPLIBS-g2c" \" -*- nroff -*- .ad l .nh .SH NAME g2_unpack5.c \- Unpack Section 5 (Data Representation 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_unpack5\fP (unsigned char *cgrib, \fBg2int\fP *iofst, \fBg2int\fP *ndpts, \fBg2int\fP *idrsnum, \fBg2int\fP **idrstmpl, \fBg2int\fP *mapdrslen)" .br .RI "This subroutine unpacks Section 5 (Data Representation Section) as defined in GRIB Edition 2\&. " .in -1c .SH "Detailed Description" .PP Unpack Section 5 (Data Representation 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_unpack5\&.c\fP\&. .SH "Function Documentation" .PP .SS "\fBg2int\fP g2_unpack5 (unsigned char * cgrib, \fBg2int\fP * iofst, \fBg2int\fP * ndpts, \fBg2int\fP * idrsnum, \fBg2int\fP ** idrstmpl, \fBg2int\fP * mapdrslen)" .PP This subroutine unpacks Section 5 (Data Representation Section) as defined in GRIB Edition 2\&. PROGRAM HISTORY LOG: .IP "\(bu" 2 2002-10-31 Gilbert .IP "\(bu" 2 2009-01-14 Vuong Changed structure name template to gtemplate .PP .PP \fBParameters\fP .RS 4 \fIcgrib\fP char array containing Section 5 of the GRIB2 message\&. .br \fIiofst\fP Bit offset for the beginning of Section 5 in cgrib\&. Returned with bit offset at the end of Section 5\&. .br \fIndpts\fP Number of data points unpacked and returned\&. .br \fIidrsnum\fP Data Representation Template Number (see Code Table 5\&.0)\&. .br \fIidrstmpl\fP Pointer to an integer array containing the data values for the specified Data Representation Template (N=idrsnum)\&. Each element of this integer array contains an entry (in the order specified) of Data Representation Template 5\&.N\&. .br \fImapdrslen-\fP Number of elements in idrstmpl\&. i\&.e\&. number of entries in Data Representation Template 5\&.N (N=idrsnum)\&. .RE .PP \fBReturns\fP .RS 4 .IP "\(bu" 2 0 no error .IP "\(bu" 2 2 Not Section 5 .IP "\(bu" 2 6 memory allocation error .IP "\(bu" 2 7 'GRIB' message contains an undefined Data Representation Template\&. .PP .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2002-10-31 .RE .PP .PP Definition at line 40 of file g2_unpack5\&.c\&. .PP References gtemplate::ext, extdrstemplate(), gtemplate::extlen, gbit(), getdrstemplate(), gtemplate::map, gtemplate::maplen, and gtemplate::needext\&. .PP Referenced by g2_getfld()\&. .SH "Author" .PP Generated automatically by Doxygen for NCEPLIBS-g2c from the source code\&.