Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
71ccbbbd
Commit
71ccbbbd
authored
Oct 19, 2007
by
Uwe Schulzweida
Browse files
improve HYBRID_HALF support for grb/nc
parent
d87845f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
71ccbbbd
...
...
@@ -1673,8 +1673,7 @@ void cdfDefVCT(int streamID, int zaxisID)
streamptr
=
stream_to_pointer
(
streamID
);
type
=
zaxisInqType
(
zaxisID
);
if
(
type
==
ZAXIS_HYBRID
)
if
(
type
==
ZAXIS_HYBRID
||
type
==
ZAXIS_HYBRID_HALF
)
{
int
i
;
int
fileID
;
...
...
@@ -1852,12 +1851,12 @@ void cdfDefZaxis(int streamID, int zaxisID)
if
(
type
==
ZAXIS_HYBRID
||
type
==
ZAXIS_HYBRID_HALF
)
{
size_
t
ilev
=
zaxisInqVctSize
(
zaxisID
)
/
2
;
size_
t
mlev
=
ilev
-
1
;
in
t
ilev
=
zaxisInqVctSize
(
zaxisID
)
/
2
;
in
t
mlev
=
ilev
-
1
;
if
(
type
==
ZAXIS_HYBRID
)
{
if
(
(
int
)
mlev
!=
dimlen
)
if
(
mlev
!=
dimlen
)
{
if
(
streamptr
->
ncmode
==
2
)
cdf_redef
(
fileID
);
...
...
@@ -1888,7 +1887,7 @@ void cdfDefZaxis(int streamID, int zaxisID)
if
(
type
==
ZAXIS_HYBRID_HALF
)
{
if
(
(
int
)
ilev
!=
dimlen
)
if
(
ilev
!=
dimlen
)
{
if
(
streamptr
->
ncmode
==
2
)
cdf_redef
(
fileID
);
...
...
src/stream_grb.c
View file @
71ccbbbd
...
...
@@ -1920,6 +1920,7 @@ void grbDefLevel(int *isec1, int *isec2, double *fsec2, int zaxisID, int levelID
break
;
}
case
ZAXIS_HYBRID
:
case
ZAXIS_HYBRID_HALF
:
{
int
vctsize
;
...
...
src/varscan.c
View file @
71ccbbbd
...
...
@@ -686,7 +686,7 @@ int varDefZaxis(int vlistID, int zaxistype, int nlevels, double *levels, int lbo
zaxisDefUbounds
(
zaxisID
,
levels2
);
}
if
(
zaxistype
==
ZAXIS_HYBRID
)
if
(
zaxistype
==
ZAXIS_HYBRID
||
zaxistype
==
ZAXIS_HYBRID_HALF
)
{
/* if ( vctsize > 0 && vctsize >= 2*(nlevels+1)) */
/* if ( vctsize > 0 && vctsize >= 2*(nlevels)) */
...
...
Write
Preview
Markdown
is supported
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