table of contents
specunpack.c(3) | NCEPLIBS-g2c | specunpack.c(3) |
NAME¶
specunpack.c - Unpack a spectral data field that was packed using the complex packing algorithm for spherical harmonic data.
SYNOPSIS¶
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include 'grib2.h'
Functions¶
g2int specunpack (unsigned char *cpack, g2int
*idrstmpl, g2int ndpts, g2int JJ, g2int KK,
g2int MM, g2float *fld)
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.
Detailed Description¶
Unpack a spectral data field that was packed using the complex packing algorithm for spherical harmonic data.
Author
Date
Definition in file specunpack.c.
Function Documentation¶
g2int specunpack (unsigned char * cpack, g2int * idrstmpl, g2int ndpts, g2int JJ, g2int KK, g2int MM, g2float * fld)¶
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.
Parameters
idrstmpl pointer to the array of values for Data Representation Template 5.51.
ndpts The number of data values to unpack (real and imaginary parts).
JJ pentagonal resolution parameter.
KK pentagonal resolution parameter.
MM pentagonal resolution parameter.
fld Contains the unpacked data values. fld must be allocated with at least ndpts*sizeof(g2float) bytes before calling this routine.
Returns
Author
Date
Definition at line 34 of file specunpack.c.
References gbits(), int_power(), and rdieee().
Referenced by g2_unpack7().
Author¶
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.
Tue May 3 2022 | Version 1.6.4 |