.TH "specpack.c" 3 "Tue May 3 2022" "Version 1.6.4" "NCEPLIBS-g2c" \" -*- nroff -*- .ad l .nh .SH NAME specpack.c .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 "void \fBspecpack\fP (\fBg2float\fP *fld, \fBg2int\fP ndpts, \fBg2int\fP JJ, \fBg2int\fP KK, \fBg2int\fP MM, \fBg2int\fP *idrstmpl, unsigned char *cpack, \fBg2int\fP *lcpack)" .br .RI "This subroutine packs a spectral data field using the complex packing algorithm for spherical harmonic data as defined in the GRIB2 Data Representation Template 5\&.51\&. " .in -1c .SH "Detailed Description" .PP .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2002-12-19 .RE .PP .PP Definition in file \fBspecpack\&.c\fP\&. .SH "Function Documentation" .PP .SS "void specpack (\fBg2float\fP * fld, \fBg2int\fP ndpts, \fBg2int\fP JJ, \fBg2int\fP KK, \fBg2int\fP MM, \fBg2int\fP * idrstmpl, unsigned char * cpack, \fBg2int\fP * lcpack)" .PP This subroutine packs a spectral data field using the complex packing algorithm for spherical harmonic data as defined in the GRIB2 Data Representation Template 5\&.51\&. .PP \fBParameters\fP .RS 4 \fIfld\fP Contains the packed data values\&. .br \fIndpts\fP The number of data values to pack\&. .br \fIJJ\fP J - pentagonal resolution parameter\&. .br \fIKK\fP K - pentagonal resolution parameter\&. .br \fIMM\fP M - pentagonal resolution parameter\&. .br \fIidrstmpl\fP Contains the array of values for Data Representation Template 5\&.51\&. .br \fIcpack\fP The packed data field (character*1 array)\&. .br \fIlcpack\fP length of packed field cpack\&. .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2002-12-19 .RE .PP .PP Definition at line 26 of file specpack\&.c\&. .PP References int_power(), mkieee(), and simpack()\&. .PP Referenced by g2_addfield()\&. .SH "Author" .PP Generated automatically by Doxygen for NCEPLIBS-g2c from the source code\&.