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
76439d39
Commit
76439d39
authored
Jun 02, 2014
by
Uwe Schulzweida
Browse files
set variable leadtime to coordinate
parent
aac562b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
76439d39
...
...
@@ -5251,7 +5251,7 @@ void cdfScanVarAttributes(int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
if
(
status
==
NC_NOERR
)
{
cdfSetVar
(
ncvars
,
dimvarid
,
FALSE
);
if
(
cdiIgnoreAttCoordinates
==
FALSE
)
//
if ( cdiIgnoreAttCoordinates == FALSE )
{
ncvars
[
ncvarid
].
auxvarids
[
i
]
=
dimvarid
;
ncvars
[
ncvarid
].
nauxvars
++
;
...
...
@@ -7379,6 +7379,7 @@ int cdfInqContents(stream_t *streamptr)
find_time_vars
(
nvars
,
ncvars
,
ncdims
,
timedimid
,
streamptr
,
&
time_has_units
,
&
time_has_bounds
,
&
time_climatology
);
leadtime_id
=
find_leadtime
(
nvars
,
ncvars
);
if
(
leadtime_id
!=
UNDEFID
)
ncvars
[
leadtime_id
].
isvar
=
FALSE
;
/* check ncvars */
for
(
ncvarid
=
0
;
ncvarid
<
nvars
;
ncvarid
++
)
...
...
@@ -7443,7 +7444,6 @@ int cdfInqContents(stream_t *streamptr)
}
}
/* verify coordinate vars - first scan (dimname == varname) */
verify_coordinate_vars_1
(
ndims
,
ncdims
,
ncvars
,
timedimid
);
...
...
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