Commit efde8f52 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdfDefVarMissval: behavior of _FillValue handling has been changed in netCDF4 (bug fix).

parent 10bb0003
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
* using CGRIBEX library version 1.8.1 * using CGRIBEX library version 1.8.1
* Version 1.9.0 released * Version 1.9.0 released
2017-07-18 Uwe Schulzweida
* cdfDefVarMissval: behavior of _FillValue handling has been changed in netCDF4 (bug fix)
2017-07-12 Uwe Schulzweida 2017-07-12 Uwe Schulzweida
* grib1(cgribex): added support for GRIB1 records without GridDecriptionSection * grib1(cgribex): added support for GRIB1 records without GridDecriptionSection
......
...@@ -94,7 +94,11 @@ void cdfDefVarMissval(stream_t *streamptr, int varID, int dtype, int lcheck) ...@@ -94,7 +94,11 @@ 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;
cdf_put_att_double(fileID, ncvarid, "_FillValue", (nc_type) xtype, 1, &missval); if ( streamptr->ncmode != 2 ||
streamptr->filetype == CDI_FILETYPE_NC ||
streamptr->filetype == CDI_FILETYPE_NC2 )
cdf_put_att_double(fileID, ncvarid, "_FillValue_FillValue", (nc_type) xtype, 1, &missval);
cdf_put_att_double(fileID, ncvarid, "missing_value", (nc_type) xtype, 1, &missval); cdf_put_att_double(fileID, ncvarid, "missing_value", (nc_type) xtype, 1, &missval);
if ( lcheck && streamptr->ncmode == 2 ) cdf_enddef(fileID); if ( lcheck && streamptr->ncmode == 2 ) cdf_enddef(fileID);
......
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