ec-jrc / lisflood-utilities

LISFLOOD OS - Utilities
https://ec-jrc.github.io/lisflood
European Union Public License 1.2
22 stars 9 forks source link

cutmaps - force compression to False #17

Closed domeniconappo closed 3 years ago

domeniconappo commented 3 years ago

Need to verify the following:

When copying/cutting a netcdf variable from an existing file with xarray to_netcdf method, the function "inherits" properties and attributes of the variable read. If the variable has the parameter least_significant_digits (which means that was written with lossy compression activated), it will perform another lossy compression and output values will be different from the original values.

To preserve precision of cut maps, need to force zlib=False.