Skip to content

Commit

Permalink
forcing chunk to auto when saving to zarr
Browse files Browse the repository at this point in the history
  • Loading branch information
gtramonte committed Dec 12, 2024
1 parent 9b08444 commit 66b0457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geokube/core/datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def to_netcdf(self, path, encoding: bool = True):
self.to_xarray(encoding=encoding).to_netcdf(path=path)

def to_zarr(self, path, encoding: bool = True, **kwargs):
self.to_xarray(encoding=encoding).to_zarr(path,**kwargs)
self.to_xarray(encoding=encoding).chunk('auto').to_zarr(path,**kwargs)

@geokube_logging
def to_csv(self, path, encoding: bool = True):
Expand Down

0 comments on commit 66b0457

Please sign in to comment.