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
6260d66d
Commit
6260d66d
authored
Jan 07, 2010
by
Uwe Schulzweida
Browse files
cgribex lib update
parent
b0ad448a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cgribexlib.c
View file @
6260d66d
...
...
@@ -4781,13 +4781,20 @@ int decodeBDS(int decscale, unsigned char *bds, int *isec2, int *isec4,
if
(
bds_aflag
)
{
size_t
len
;
/*
if ( bds_rep == 0 )
ISEC4_NumValues = ISEC2_NumLon*ISEC2_NumLat;
else
ISEC4_NumValues = (ISEC2_PentaJ+1)*(ISEC2_PentaJ+2);
*/
ISEC4_NumValues
=
GET_UINT3
(
bds
[
17
],
bds
[
18
],
bds
[
19
])
*
8
/
ISEC4_NumBits
;
/* ISEC4_NumValues = GET_UINT3(bds[17],bds[18],bds[19])*8/ISEC4_NumBits;*/
if
(
gribrec_len
(
bds
[
14
],
bds
[
15
],
bds
[
16
])
>
JP23SET
)
len
=
((
size_t
)
((
bds
[
17
]
<<
16
)
+
(
bds
[
18
]
<<
16
)
+
(
bds
[
19
]
<<
8
)
+
bds
[
20
]));
else
len
=
((
size_t
)
((
bds
[
17
]
<<
16
)
+
(
bds
[
18
]
<<
8
)
+
bds
[
19
]));
ISEC4_NumValues
=
len
*
8
/
ISEC4_NumBits
;
if
(
bds_rep
==
1
)
ISEC4_NumValues
++
;
}
...
...
@@ -9107,7 +9114,7 @@ int gribUnzip(unsigned char *dbuf, long dbufsize, unsigned char *sbuf, long sbu
return
(
gribLen
);
}
static
const
char
grb_libvers
[]
=
"1.4.2"
" of ""Jan 7 2010"" ""13:
16:50
"
;
static
const
char
grb_libvers
[]
=
"1.4.2"
" of ""Jan 7 2010"" ""13:
59:13
"
;
const
char
*
cgribexLibraryVersion
(
void
)
{
...
...
src/stream_cgribex.c
View file @
6260d66d
...
...
@@ -237,7 +237,7 @@ void cgribexAddRecord(int streamID, int param, int *isec1, int *isec2, double *f
(
*
record
).
size
=
recsize
;
(
*
record
).
position
=
position
;
(
*
record
).
param
=
param
;
(
*
record
).
param
=
param
;
(
*
record
).
ilevel
=
level1
;
(
*
record
).
ilevel2
=
level2
;
(
*
record
).
ltype
=
ISEC1_LevelType
;
...
...
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