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
470f5358
Commit
470f5358
authored
Nov 15, 2008
by
Uwe Schulzweida
Browse files
cdf_inq_contents: check zaxis type depth_blow_sea/land
parent
3f47006a
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
470f5358
2008-12-?? Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* cdf_inq_contents: check zaxis type "depth_blow_sea/land" (bug fix)
2008-11-13 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* add new function: streamSync
...
...
src/stream_cdf.c
View file @
470f5358
...
...
@@ -4304,12 +4304,14 @@ int cdfInqContents(int streamID)
else
if
(
strcmp
(
ncvars
[
ncvarid
].
units
,
"cm"
)
==
0
)
{
if
(
strcmp
(
ncvars
[
ncvarid
].
longname
,
"depth below land"
)
==
0
||
strcmp
(
ncvars
[
ncvarid
].
longname
,
"depth_below_land"
)
==
0
||
strcmp
(
ncvars
[
ncvarid
].
longname
,
"levels below the surface"
)
==
0
)
ncvars
[
ncvarid
].
zaxistype
=
ZAXIS_DEPTH_BELOW_LAND
;
}
else
if
(
strcmp
(
ncvars
[
ncvarid
].
units
,
"m"
)
==
0
)
{
if
(
strcmp
(
ncvars
[
ncvarid
].
longname
,
"depth below sea"
)
==
0
)
if
(
strcmp
(
ncvars
[
ncvarid
].
longname
,
"depth_below_sea"
)
==
0
||
strcmp
(
ncvars
[
ncvarid
].
longname
,
"depth below sea"
)
==
0
)
ncvars
[
ncvarid
].
zaxistype
=
ZAXIS_DEPTH_BELOW_SEA
;
else
if
(
strcmp
(
ncvars
[
ncvarid
].
longname
,
"height"
)
==
0
||
strcmp
(
ncvars
[
ncvarid
].
longname
,
"height above the surface"
)
==
0
)
...
...
@@ -4405,13 +4407,15 @@ int cdfInqContents(int streamID)
else
if
(
strcmp
(
ncvars
[
ncvarid
].
units
,
"cm"
)
==
0
)
{
if
(
strcmp
(
ncvars
[
ncvarid
].
longname
,
"depth below land"
)
==
0
||
strcmp
(
ncvars
[
ncvarid
].
longname
,
"depth_below_land"
)
==
0
||
strcmp
(
ncvars
[
ncvarid
].
longname
,
"levels below the surface"
)
==
0
)
ncvars
[
ncvarid
].
zaxistype
=
ZAXIS_DEPTH_BELOW_LAND
;
continue
;
}
else
if
(
strcmp
(
ncvars
[
ncvarid
].
units
,
"m"
)
==
0
)
{
if
(
strcmp
(
ncvars
[
ncvarid
].
longname
,
"depth below sea"
)
==
0
)
if
(
strcmp
(
ncvars
[
ncvarid
].
longname
,
"depth_below_sea"
)
==
0
||
strcmp
(
ncvars
[
ncvarid
].
longname
,
"depth below sea"
)
==
0
)
ncvars
[
ncvarid
].
zaxistype
=
ZAXIS_DEPTH_BELOW_SEA
;
else
if
(
strcmp
(
ncvars
[
ncvarid
].
longname
,
"height"
)
==
0
||
strcmp
(
ncvars
[
ncvarid
].
longname
,
"height above the surface"
)
==
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