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
397f76ae
Commit
397f76ae
authored
Jul 04, 2012
by
Uwe Schulzweida
Browse files
stream_cdf::define_all_grids: modify check for same x and y varids
parent
7ed7cf0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
397f76ae
...
...
@@ -6584,13 +6584,6 @@ int cdfInqContents(int streamID)
}
}
if
(
CDI_Debug
)
printNCvars
(
ncvars
,
nvars
);
/* define all grids */
define_all_grids
(
streamptr
,
fileID
,
vlistID
,
ncdims
,
nvars
,
ncvars
,
timedimid
);
/* find VCT */
for
(
ncvarid
=
0
;
ncvarid
<
nvars
;
ncvarid
++
)
{
...
...
@@ -6600,17 +6593,29 @@ int cdfInqContents(int streamID)
{
vcta_id
=
ncvarid
;
nvcth_id
=
ncvars
[
ncvarid
].
dimids
[
0
];
ncvars
[
ncvarid
].
isvar
=
FALSE
;
continue
;
}
if
(
memcmp
(
ncvars
[
ncvarid
].
name
,
"hybi"
,
4
)
==
0
)
{
vctb_id
=
ncvarid
;
nvcth_id
=
ncvars
[
ncvarid
].
dimids
[
0
];
ncvars
[
ncvarid
].
isvar
=
FALSE
;
continue
;
}
if
(
memcmp
(
ncvars
[
ncvarid
].
name
,
"hyam"
,
4
)
==
0
)
ncvars
[
ncvarid
].
isvar
=
FALSE
;
else
if
(
memcmp
(
ncvars
[
ncvarid
].
name
,
"hybm"
,
4
)
==
0
)
ncvars
[
ncvarid
].
isvar
=
FALSE
;
}
}
if
(
CDI_Debug
)
printNCvars
(
ncvars
,
nvars
);
/* define all grids */
define_all_grids
(
streamptr
,
fileID
,
vlistID
,
ncdims
,
nvars
,
ncvars
,
timedimid
);
/* read VCT */
if
(
nvcth_id
!=
UNDEFID
&&
vcta_id
!=
UNDEFID
&&
vctb_id
!=
UNDEFID
)
{
...
...
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