NCEPLIBS-g2c 1.9.0
|
Pack a data field using a complex packing algorithm as defined in the GRIB2 documention. More...
Go to the source code of this file.
Functions | |
void | misspack (float *fld, g2int ndpts, g2int idrsnum, g2int *idrstmpl, unsigned char *cpack, g2int *lcpack) |
Pack a data field using a complex packing algorithm. | |
Pack a data field using a complex packing algorithm as defined in the GRIB2 documention.
Definition in file misspack.c.
void misspack | ( | float * | fld, |
g2int | ndpts, | ||
g2int | idrsnum, | ||
g2int * | idrstmpl, | ||
unsigned char * | cpack, | ||
g2int * | lcpack | ||
) |
Pack a data field using a complex packing algorithm.
This funciton supports GRIB2 complex packing templates with or without spatial differences (See Template 5.2 and Template 5.3).
This function fills in GRIB2 Data Representation template arrays with the appropriate values.
fld | Contains the data values to pack |
ndpts | The number of data values in array fld |
idrsnum | Data Representation Template number. Must equal 2 or 3. |
idrstmpl | Contains the array of values for Data Representation Template 5.2 or 5.3.
|
cpack | The packed data field (character*1 array). |
lcpack | length of packed field cpack. |
Definition at line 43 of file misspack.c.
References ALOG2, int_power(), mkieee(), pack_gp(), rdieee(), sbit(), and sbits().
Referenced by cmplxpack().