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

cgribexlib update.

parent aa800a1e
/* Automatically generated by m214003 at 2019-09-09, do not edit */
/* Automatically generated by m214003 at 2019-09-25, do not edit */
/* CGRIBEXLIB_VERSION="1.9.4" */
......@@ -4855,7 +4855,11 @@ int grib1Sections(unsigned char *gribbuffer, long gribbufsize, unsigned char **p
unsigned recsize = GET_UINT3(section[4], section[5], section[6]);
int gribversion = GRIB_EDITION(section);
if ( recsize == 24 && gribversion == 0 ) gribversion = 0;
if ( gribversion != 0 && gribversion != 1 )
{
fprintf(stderr, "Error while decoding GRIB1 sections: GRIB edition %d records not supported!\n", gribversion);
return -1;
}
unsigned grib1offset = (gribversion == 1) ? 4 : 0;
......
......@@ -84,6 +84,7 @@ void cgribexDelete(void *cgribex)
int grib1Sections(unsigned char *gribbuffer, long gribbufsize, unsigned char **pdsp,
unsigned char **gdsp, unsigned char **bmsp, unsigned char **bdsp, long *gribrecsize);
static
size_t cgribexSection2Length(void *gribbuffer, size_t gribbuffersize)
{
long sec2len = 0;
......
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