Skip to content
GitLab
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
488af424
Commit
488af424
authored
Feb 18, 2010
by
Uwe Schulzweida
Browse files
cdilib update
parent
58a97788
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cgribexlib.c
View file @
488af424
/* Automatically generated by m214003 at 2010-02-1
5
, do not edit */
/* Automatically generated by m214003 at 2010-02-1
8
, do not edit */
/* CGRIBEXLIB_VERSION="1.4.3" */
...
...
@@ -4451,8 +4451,8 @@ void decode_double_array(unsigned char *igrib, long jlend, long jlenc, int NumBi
else
if
(
NumBits
==
32
)
for
(
i
=
0
;
i
<
jlend
;
i
++
)
{
dval
=
(((
int
)
lgrib
[
4
*
i
]
<<
24
)
+
((
int
)
lgrib
[
4
*
i
+
1
]
<<
16
)
+
((
int
)
lgrib
[
4
*
i
+
2
]
<<
8
)
+
(
int
)
lgrib
[
4
*
i
+
3
]);
dval
=
(((
unsigned
int
)
lgrib
[
4
*
i
]
<<
24
)
+
((
unsigned
int
)
lgrib
[
4
*
i
+
1
]
<<
16
)
+
((
unsigned
int
)
lgrib
[
4
*
i
+
2
]
<<
8
)
+
(
unsigned
int
)
lgrib
[
4
*
i
+
3
]);
fpdata
[
i
]
=
fmin
+
zscale
*
dval
;
}
else
if
(
NumBits
<=
25
)
...
...
@@ -8853,7 +8853,7 @@ int gribUnzip(unsigned char *dbuf, long dbufsize, unsigned char *sbuf, long sbu
return
(
gribLen
);
}
static
const
char
grb_libvers
[]
=
"1.4.3"
" of ""Feb 1
5
2010"" ""1
3:50:3
1"
;
static
const
char
grb_libvers
[]
=
"1.4.3"
" of ""Feb 1
8
2010"" ""1
1:24:4
1"
;
const
char
*
cgribexLibraryVersion
(
void
)
{
...
...
src/stream_gribapi.c
View file @
488af424
...
...
@@ -2062,9 +2062,17 @@ void gribapiDefGrid(grib_handle *gh, int gridID, int ljpeg)
if
(
gridInqComplexPacking
(
gridID
)
)
{
mesg
=
"spectral_complex"
;
len
=
strlen
(
mesg
);
static
int
lwarncomplex
=
1
;
if
(
lwarncomplex
)
{
Warning
(
func
,
"GRIB2 complex packing not implemented, using simple packing!"
);
lwarncomplex
=
0
;
}
mesg
=
"spectral_simple"
;
len
=
strlen
(
mesg
);
GRIB_CHECK
(
grib_set_string
(
gh
,
"typeOfPacking"
,
mesg
,
&
len
),
0
);
/*
mesg = "spectral_complex"; len = strlen(mesg);
GRIB_CHECK(grib_set_string(gh, "typeOfPacking", mesg, &len), 0);
GRIB_CHECK(grib_set_long(gh, "JS", 20), 0);
GRIB_CHECK(grib_set_long(gh, "KS", 20), 0);
GRIB_CHECK(grib_set_long(gh, "MS", 20), 0);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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