NCEPLIBS-g2c
1.6.4
|
Pack up a data field using the simple packing algorithm. More...
Go to the source code of this file.
Functions | |
void | simpack (g2float *fld, g2int ndpts, g2int *idrstmpl, unsigned char *cpack, g2int *lcpack) |
This subroutine packs up a data field using the simple packing algorithm as defined in the GRIB2 documention. More... | |
Pack up a data field using the simple packing algorithm.
Definition in file simpack.c.
void simpack | ( | g2float * | fld, |
g2int | ndpts, | ||
g2int * | idrstmpl, | ||
unsigned char * | cpack, | ||
g2int * | lcpack | ||
) |
This subroutine packs up a data field using the simple packing algorithm as defined in the GRIB2 documention.
It also fills in GRIB2 Data Representation Template 5.0 with the appropriate values.
fld | Contains the data values to pack. |
ndpts | The number of data values in array fld. |
idrstmpl | Contains the array of values for [Data Representation Template 5.0](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_temp5-0.shtml).
|
cpack | The packed data field |
lcpack | length of packed field starting at cpack. |
Definition at line 34 of file simpack.c.
References int_power(), mkieee(), sbit(), and sbits().
Referenced by g2_addfield(), and specpack().