NCEPLIBS-g2c 1.9.0
|
Unpack a data field that was packed using a simple packing algorithm. More...
Go to the source code of this file.
Functions | |
g2int | simunpack (unsigned char *cpack, g2int *idrstmpl, g2int ndpts, float *fld) |
Unpack a data field that was packed using a simple packing algorithm, using info from the GRIB2 Data Representation Template 5.0. | |
Unpack a data field that was packed using a simple packing algorithm.
Definition in file simunpack.c.
Unpack a data field that was packed using a simple packing algorithm, using info from the GRIB2 Data Representation Template 5.0.
cpack | pointer to the packed data field. |
idrstmpl | pointer to the array of values for Data Representation Template 5.0. |
ndpts | The number of data values to unpack. |
fld | A pointer that gets the unpacked data values. fld must be `* allocated with at least ndpts * sizeof(float) bytes before calling this routine. |
Definition at line 28 of file simunpack.c.
References G2_JPCUNPACK_MEM, G2_NO_ERROR, gbits(), int_power(), LOG, and rdieee().
Referenced by g2c_unpack7_int().