Commit 8cf4a2c7 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

bug fix: netCDF NC_BYTE

parent 3f74e335
......@@ -3758,7 +3758,7 @@ int cdfWriteVarSliceDP(int streamID, int varID, int levelID, const double *data,
if ( xtype == NC_BYTE )
{
for ( i = 0; i < nvals; ++i )
if ( mdata[i] > 126 ) mdata[i] -= 255;
if ( mdata[i] > 126 ) mdata[i] -= 256;
}
}
}
......
Supports Markdown
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