.TH "simunpack.c" 3 "Fri Jun 3 2022" "Version 1.6.4" "NCEPLIBS-g2c" \" -*- nroff -*- .ad l .nh .SH NAME simunpack.c .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 \fBsimunpack\fP (unsigned char *cpack, \fBg2int\fP *idrstmpl, \fBg2int\fP ndpts, \fBg2float\fP *fld)" .br .RI "This subroutine unpacks a data field that was packed using a simple packing algorithm as defined in the GRIB2 documention, using info from the GRIB2 Data Representation Template 5\&.0\&. " .in -1c .SH "Detailed Description" .PP .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2002-10-29 .RE .PP .PP Definition in file \fBsimunpack\&.c\fP\&. .SH "Function Documentation" .PP .SS "\fBg2int\fP simunpack (unsigned char * cpack, \fBg2int\fP * idrstmpl, \fBg2int\fP ndpts, \fBg2float\fP * fld)" .PP This subroutine unpacks a data field that was packed using a simple packing algorithm as defined in the GRIB2 documention, using info from the GRIB2 Data Representation Template 5\&.0\&. .PP \fBParameters\fP .RS 4 \fIcpack\fP pointer to the packed data field\&. .br \fIidrstmpl\fP pointer to the array of values for Data Representation Template 5\&.0\&. .br \fIndpts\fP The number of data values to unpack\&. .br \fIfld\fP Contains the unpacked data values\&. fld must be allocated with at least ndpts*sizeof(g2float) bytes before calling this routine\&. .RE .PP \fBReturns\fP .RS 4 0 for success, error code otherwise\&. .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2002-10-29 .RE .PP .PP Definition at line 26 of file simunpack\&.c\&. .PP References gbits(), int_power(), and rdieee()\&. .PP Referenced by g2_unpack7()\&. .SH "Author" .PP Generated automatically by Doxygen for NCEPLIBS-g2c from the source code\&.