Commit 62683667 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cgribexlib update

parent d4304d85
/* Automatically generated by m214003 at 2013-02-05, do not edit */
/* Automatically generated by m214003 at 2013-02-12, do not edit */
/* CGRIBEXLIB_VERSION="1.6.0" */
......@@ -2677,6 +2677,7 @@ void gribDateTime(int *isec1, int *date, int *time)
gprintf(__func__, "Time unit %d unsupported", ISEC1_TimeUnit);
lprint = FALSE;
}
break;
}
julday_add_seconds(addsec, &julday, &secofday);
......@@ -9364,7 +9365,7 @@ void grib1PrintALL(int nrec, long offset, long recpos, long recsize, unsigned ch
bdslen = BDS_Len;
bdslen = correct_bdslen(bdslen, recsize, bds-gribbuffer);
if ( (BDS_Flag >> 4)&1 && BDS_Z == 128 )
if ( ((BDS_Flag >> 4)&1) && BDS_Z == 128 )
{
int s1, s2;
s1 = gribrec_len(bds[14], bds[15], bds[16]);
......@@ -9690,7 +9691,7 @@ void grib1PrintBDS(int nrec, long recpos, long recsize, unsigned char *gribbuffe
else
level = PDS_Level1;
if ( (BDS_Flag >> 4)&1 && BDS_Z == 128 )
if ( ((BDS_Flag >> 4)&1) && BDS_Z == 128 )
{
int s1, s2;
s1 = ((int) ((bds[17]<<16)+(bds[18]<<8)+bds[19]));
......@@ -9759,7 +9760,7 @@ void gribCheck1(int nrec, long recpos, long recsize, unsigned char *gribbuffer)
else
level = PDS_Level1;
if ( (BDS_Flag >> 4)&1 && BDS_Z == 128 )
if ( ((BDS_Flag >> 4)&1) && BDS_Z == 128 )
{
int s1, s2;
s1 = ((int) ((bds[17]<<16)+(bds[18]<<8)+bds[19]));
......@@ -9845,7 +9846,7 @@ void repair1(unsigned char *gbuf, long gbufsize)
}
void gribRepair1(int nrec, long recpos, long recsize, unsigned char *gribbuffer)
void gribRepair1(int nrec, long recsize, unsigned char *gribbuffer)
{
int level, nerr;
unsigned char *pds = NULL, *gds = NULL, *bms = NULL, *bds = NULL;
......@@ -9865,7 +9866,7 @@ void gribRepair1(int nrec, long recpos, long recsize, unsigned char *gribbuffer)
else
level = PDS_Level1;
if ( (BDS_Flag >> 4)&1 && BDS_Z == 128 )
if ( ((BDS_Flag >> 4)&1) && BDS_Z == 128 )
{
int s1, s2;
s1 = ((int) ((bds[17]<<16)+(bds[18]<<8)+bds[19]));
......@@ -9873,7 +9874,7 @@ void gribRepair1(int nrec, long recpos, long recsize, unsigned char *gribbuffer)
cr = ((double)s1)/s2;
}
if ( cr == 1 && BDS_NumBits == 24 )
if ( IS_EQUAL(cr, 1) && BDS_NumBits == 24 )
{
fprintf(stdout, "Repair GRIB record %5d : code = %4d level = %7d\n", nrec, PDS_Parameter, level);
repair1(gribbuffer, recsize);
......@@ -10502,7 +10503,7 @@ int gribUnzip(unsigned char *dbuf, long dbufsize, unsigned char *sbuf, long sbu
return (gribLen);
}
static const char grb_libvers[] = "1.6.0" " of ""Feb 5 2013"" ""13:19:33";
static const char grb_libvers[] = "1.6.0" " of ""Feb 12 2013"" ""09:17:09";
const char *
cgribexLibraryVersion(void)
{
......
Supports Markdown
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