.TH "specunpack.c" 3 "Tue May 3 2022" "Version 1.6.4" "NCEPLIBS-g2c" \" -*- nroff -*- .ad l .nh .SH NAME specunpack.c \- Unpack a spectral data field that was packed using the complex packing algorithm for spherical harmonic data\&. .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include \fP .br \fC#include 'grib2\&.h'\fP .br .SS "Functions" .in +1c .ti -1c .RI "\fBg2int\fP \fBspecunpack\fP (unsigned char *cpack, \fBg2int\fP *idrstmpl, \fBg2int\fP ndpts, \fBg2int\fP JJ, \fBg2int\fP KK, \fBg2int\fP MM, \fBg2float\fP *fld)" .br .RI "This subroutine unpacks a spectral data field that was packed using the complex packing algorithm for spherical harmonic data as defined in the GRIB2 documention, using info from the GRIB2 Data Representation Template 5\&.51\&. " .in -1c .SH "Detailed Description" .PP Unpack a spectral data field that was packed using the complex packing algorithm for spherical harmonic data\&. .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2000-06-21 .RE .PP .PP Definition in file \fBspecunpack\&.c\fP\&. .SH "Function Documentation" .PP .SS "\fBg2int\fP specunpack (unsigned char * cpack, \fBg2int\fP * idrstmpl, \fBg2int\fP ndpts, \fBg2int\fP JJ, \fBg2int\fP KK, \fBg2int\fP MM, \fBg2float\fP * fld)" .PP This subroutine unpacks a spectral data field that was packed using the complex packing algorithm for spherical harmonic data as defined in the GRIB2 documention, using info from the GRIB2 Data Representation Template 5\&.51\&. .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\&.51\&. .br \fIndpts\fP The number of data values to unpack (real and imaginary parts)\&. .br \fIJJ\fP pentagonal resolution parameter\&. .br \fIKK\fP pentagonal resolution parameter\&. .br \fIMM\fP pentagonal resolution parameter\&. .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, -3 for wrong type\&. .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2000-06-21 .RE .PP .PP Definition at line 34 of file specunpack\&.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\&.