Skip to content
Snippets Groups Projects
Commit 6bfa6f6c authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

streamOpenAppend: set defmiss = true (Needed for NetCDF4).

parent 6a80f33b
No related branches found
No related tags found
No related merge requests found
2017-03-14 Uwe Schulzweida
2017-03-24 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
......
......@@ -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);
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment