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
6bfa6f6c
Commit
6bfa6f6c
authored
Mar 14, 2017
by
Uwe Schulzweida
Browse files
streamOpenAppend: set defmiss = true (Needed for NetCDF4).
parent
6a80f33b
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
6bfa6f6c
2017-03-
1
4 Uwe Schulzweida
2017-03-
2
4 Uwe Schulzweida
* Version 1.8.1 released
2017-03-14 Uwe Schulzweida
* streamOpenAppend: set defmiss = true (Needed for NetCDF4)
2017-03-08 Uwe Schulzweida
* Preserve netcdf time units attribute
...
...
src/stream.c
View file @
6bfa6f6c
...
...
@@ -637,6 +637,11 @@ int streamOpenA(const char *filename, const char *filemode, int filetype)
if
(
status
<
0
)
return
status
;
vlist_t
*
vlistptr
=
vlist_to_pointer
(
streamptr
->
vlistID
);
vlistptr
->
ntsteps
=
(
int
)
cdiInqTimeSize
(
streamID
);
// Needed for NetCDF4
for
(
int
varID
=
0
;
varID
<
vlistptr
->
nvars
;
++
varID
)
streamptr
->
vars
[
varID
].
defmiss
=
true
;
if
(
!
strcmp
(
filemode
,
"r"
)
)
cdiVlistMakeImmutable
(
streamptr
->
vlistID
);
{
...
...
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