Commit 27bef78d authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cgribexlib update

parent e653a050
/* Automatically generated by m214003 at 2013-07-16, do not edit */
/* Automatically generated by m214003 at 2013-07-17, do not edit */
/* CGRIBEXLIB_VERSION="1.6.2" */
......@@ -6298,6 +6298,16 @@ int decodeBDS(int decscale, unsigned char *bds, int *isec2, int *isec4,
locnd += 4*ioff; /* RealCoef */
}
}
else
{
if ( lcomplex )
{
*iret = 1999;
gprintf(__func__, " Second order packed grids unsupported!");
gprintf(__func__, " Return code = %d", *iret);
return (0);
}
}
/* Decode data values to floating point and store in fsec4. */
/* First calculate the number of data values. */
......@@ -6716,10 +6726,12 @@ void gribDecode(int *isec0, int *isec1, int *isec2, double *fsec2, int *isec3,
{
*iret = -801;
}
//printf("nlat %d nlon %d \n", nlat, nlon);
//printf("nvalues %d %d\n", nvalues, ISEC4_NumValues);
if ( dfunc == 'R' && *iret == -801 )
gprintf(__func__, "Number of values (%d) and sum of lons per row (%d) differ, abort conversion to regular grid!",
ISEC4_NumValues, nvalues);
gprintf(__func__, "Number of values (%d) and sum of lons per row (%d) differ, abort conversion to regular Gaussian grid!",
ISEC4_NumValues, nvalues);
if ( dfunc == 'R' && *iret != -801 )
{
......@@ -6732,8 +6744,7 @@ void gribDecode(int *isec0, int *isec1, int *isec2, double *fsec2, int *isec3,
((ISEC1_Parameter == 27) || (ISEC1_Parameter == 28) ||
(ISEC1_Parameter == 29) || (ISEC1_Parameter == 30));
(void) qu2reg3(fsec4, ISEC2_RowLonPtr, nlat, nlon, FSEC3_MissVal, iret,
lsect3, lperio, lveggy);
(void) qu2reg3(fsec4, ISEC2_RowLonPtr, nlat, nlon, FSEC3_MissVal, iret, lsect3, lperio, lveggy);
if ( bitmapSize > 0 )
{
......@@ -10810,7 +10821,7 @@ int gribUnzip(unsigned char *dbuf, long dbufsize, unsigned char *sbuf, long sbu
return (gribLen);
}
static const char grb_libvers[] = "1.6.2" " of ""Jul 16 2013"" ""15:13:17";
static const char grb_libvers[] = "1.6.2" " of ""Jul 17 2013"" ""17:58:22";
const char *
cgribexLibraryVersion(void)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment