bcdev / lc-cci-toolbox

Tools that support the LC_cci processing chains
1 stars 0 forks source link

Unsigned byte data should be written with unsigned data type #3

Open marpet opened 7 years ago

marpet commented 7 years ago

Files are written in NetCDF4 and this version supports unsigned data types. Beside using the _Unsigned attribute the data should be written as unsigned data. http://www.unidata.ucar.edu/software/netcdf/docs/BestPractices.html#bp_Unsigned-Data

The current netcdf library version (4.3.22) we use does not allow it. Probably we need to update to 4.6 or higher.

forman commented 7 years ago

To my understanding, the _Unsigned attribute is only used for (NetCDF3) signed integer data types.