g2intaecunpack(unsignedchar*cpack,g2intlen,g2int*idrstmpl,g2intndpts,float*fld)
Unpack AEC compressed data into an array of floats, using info from the GRIB2 Data Representation
Template 5.42.
Parameterscpack The packed data.
len The length of the packed data.
idrstmpl Pointer to array of values for Data Representation Template 5.42.
ndpts The number of data values to unpack.
fld A pointer that gets the unpacked data values as an array of float.
Returns
• G2C_NOERROR No error.
Author
Eric Engle
Date
2023-10-16
Definition at line 161 of file aecunpack.c.
References aecunpack_int(), and LOG.
Referenced by g2c_unpack7_int().
staticintaecunpack_int(unsignedchar*cpack,g2intlen,g2int*idrstmpl,g2intndpts,void*fld,intfld_is_double,intverbose)[static]
Unpack AEC compressed data into an array of floats or doubles, using info from the GRIB2 Data
Representation Template 5.42. This function is used by aecunpack(), g2c_aecunpackf(), and
g2c_aecunpackd().
Parameterscpack The packed data.
len The length of the packed data.
idrstmpl Pointer to array of values for Data Representation Template 5.42.
ndpts The number of data values to unpack.
fld A pointer that gets the unpacked data values.
fld_is_double Non-zero if the data are to be unpacked into a double array, otherwise data will be
unpacked into a float array.
verbose If non-zero, error messages will be printed in case of error. Otherwise, error codes will be
return but no error messages printed. Calls to the original g2c API may cause error messages to be
printed in case of error. For the new g2c_ API, no error messages will be printed - instead an error
code will be returned. Call g2c_strerror() to get the error message for any error code.
Returns
• G2C_NOERROR No error.
• G2C_ENOMEM Out of memory.
Author
Eric Engle
Date
2023-10-16
Definition at line 43 of file aecunpack.c.
References dec_aec(), G2C_ENOMEM, G2C_NOERROR, gbits(), int_power(), LOG, and rdieee().
Referenced by aecunpack(), g2c_aecunpackd(), and g2c_aecunpackf().
intg2c_aecunpackd(unsignedchar*cpack,size_tlen,int*idrstmpl,size_tndpts,double*fld)
Unpack AEC compressed data into an array of doubles, using info from the GRIB2 Data Representation
Template 5.42. This function is the V2 API version of aecunpack() for doubles.
Parameterscpack The packed data.
len The length of the packed data.
idrstmpl Pointer to array of values for Data Representation Template 5.42.
ndpts The number of data values to unpack.
fld A pointer that gets the unpacked data values as an array of double.
Returns
• G2C_NOERROR No error.
• G2C_ENOMEM Out of memory.
Author
Eric Engle
Date
2023-10-16
Definition at line 232 of file aecunpack.c.
References aecunpack_int(), G2C_AEC_DRS_TEMPLATE_LEN, and LOG.
intg2c_aecunpackf(unsignedchar*cpack,size_tlen,int*idrstmpl,size_tndpts,float*fld)
Unpack AEC compressed data into an array of floats, using info from the GRIB2 Data Representation
Template 5.42.
Parameterscpack The packed data.
len The length of the packed data.
idrstmpl Pointer to array of values for Data Representation Template 5.42.
ndpts The number of data values to unpack.
fld A pointer that gets the unpacked data values as an array of float.
Returns
• G2C_NOERROR No error.
• G2C_ENOMEM Out of memory.
Author
Eric Engle
Date
2022-10-16
Definition at line 194 of file aecunpack.c.
References aecunpack_int(), G2C_AEC_DRS_TEMPLATE_LEN, and LOG.