Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
d89c8351
Commit
d89c8351
authored
Sep 25, 2019
by
Uwe Schulzweida
Browse files
cgribexlib update.
parent
aa800a1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cgribexlib.c
View file @
d89c8351
/* 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
;
...
...
src/stream_cgribex.c
View file @
d89c8351
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment