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
d92ff985
Commit
d92ff985
authored
Sep 04, 2018
by
Uwe Schulzweida
Browse files
NetCDF: added support for single scalar variable .
parent
fc581d66
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
d92ff985
2018-11-08 Uwe Schulzweida
* Version 1.9.6 released
2018-09-04 Uwe Schulzweida
* NetCDF: added support for single scalar variable
2018-08-10 Uwe Schulzweida
* using CGRIBEX library version 1.9.1
...
...
src/stream_cdf_i.c
View file @
d92ff985
...
...
@@ -3639,10 +3639,9 @@ int cdf_check_vars(int nvars, ncvar_t *ncvars, size_t ntsteps, int timedimid)
cdf_set_var
(
ncvars
,
ncvarid
,
TRUE
);
if
(
ncvars
[
ncvarid
].
isvar
==
-
1
&&
ncvars
[
ncvarid
].
ndims
==
0
)
cdf_set_var
(
ncvars
,
ncvarid
,
FALSE
);
cdf_set_var
(
ncvars
,
ncvarid
,
nvars
==
1
?
TRUE
:
FALSE
);
//if ( ncvars[ncvarid].isvar == -1 && ncvars[ncvarid].ndims > 1 )
if
(
ncvars
[
ncvarid
].
isvar
==
-
1
&&
ncvars
[
ncvarid
].
ndims
>=
1
)
if
(
ncvars
[
ncvarid
].
isvar
==
-
1
&&
ncvars
[
ncvarid
].
ndims
>
0
)
cdf_set_var
(
ncvars
,
ncvarid
,
TRUE
);
if
(
ncvars
[
ncvarid
].
isvar
==
-
1
)
...
...
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