Skip to content

Commit

Permalink
Fixed to_mf_netcdf() encodings
Browse files Browse the repository at this point in the history
  • Loading branch information
bdestombe committed Jul 28, 2023
1 parent cf2a2b2 commit 18b4caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dtscalibration/datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ 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):
if np.issubdtype(self[k].dtype, str) or np.issubdtype(self[k].dtype, object):
# Compression not supported for variable length strings
# https://github.com/Unidata/netcdf4-python/issues/1205
v["zlib"] = False
Expand Down

0 comments on commit 18b4caf

Please sign in to comment.