Commit 694ca1f1 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdfDefVarMissval: write _FillValue on first timestep.

parent 571c9f6f
...@@ -94,7 +94,8 @@ void cdfDefVarMissval(stream_t *streamptr, int varID, int dtype, int lcheck) ...@@ -94,7 +94,8 @@ void cdfDefVarMissval(stream_t *streamptr, int varID, int dtype, int lcheck)
if ( xtype == NC_BYTE && missval > 127 && missval < 256 ) xtype = NC_INT; if ( xtype == NC_BYTE && missval > 127 && missval < 256 ) xtype = NC_INT;
if ( streamptr->ncmode != 2 || if ( lcheck == 0 ||
streamptr->ncmode != 2 ||
streamptr->filetype == CDI_FILETYPE_NC || streamptr->filetype == CDI_FILETYPE_NC ||
streamptr->filetype == CDI_FILETYPE_NC2 ) streamptr->filetype == CDI_FILETYPE_NC2 )
cdf_put_att_double(fileID, ncvarid, "_FillValue", (nc_type) xtype, 1, &missval); cdf_put_att_double(fileID, ncvarid, "_FillValue", (nc_type) xtype, 1, &missval);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment