diff --git a/src/dtscalibration/datastore.py b/src/dtscalibration/datastore.py index 6e1b0579..533fe650 100644 --- a/src/dtscalibration/datastore.py +++ b/src/dtscalibration/datastore.py @@ -662,6 +662,11 @@ def get_default_encoding(self, time_chunks_from_key=None): v['dtype'] = 'int32' # v['_FillValue'] = -9999 # Int does not support NaN + if np.issubdtype(self[k].dtype, str): + # Compression not supported for variable length strings + # https://github.com/Unidata/netcdf4-python/issues/1205 + v["zlib"] = False + if time_chunks_from_key is not None: # obtain optimal chunk sizes in time and x dim if self[time_chunks_from_key].dims == ('x', 'time'):