Skip to content

Commit b0c5cc5

Browse files
authored
Merge pull request #26 from CMCC-Foundation/v0.2.7.8-hotfix
zarr chunks should be unified before rechunking to avoid errors
2 parents 7b1bc3a + daf09e2 commit b0c5cc5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

geokube/core/datacube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def to_zarr(self, path, encoding: bool = True, **kwargs):
522522
for var in kube:
523523
if 'chunks' in kube[var].encoding.keys():
524524
del kube[var].encoding['chunks']
525-
kube.chunk('auto').to_zarr(path,**kwargs)
525+
kube.unify_chunks().chunk('auto').to_zarr(path,**kwargs)
526526

527527
@geokube_logging
528528
def to_csv(self, path, encoding: bool = True):

geokube/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.7.7"
1+
__version__ = "0.2.7.8"

0 commit comments

Comments
 (0)