Skip to content

Commit dbf7854

Browse files
author
nicolasK
committed
fix(datacube) : odc/chunks size
default chunksize is now x=512, y=512, better overall performances and compatible with latest odc version
1 parent 2999fbf commit dbf7854

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

docs/CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.3.5] - Unreleased
8+
9+
### Changed
10+
11+
- After benchmark, default `chunks` size is `dict(x=512,y=512, time=1)` and
12+
not "auto" for x and y anymore.
13+
- `odc-stac` newest version is now supported (and fix for odc-stac has
14+
been submitted).
15+
716
## [0.3.4] - 2024-12-17
817

918
### Fixed
@@ -21,7 +30,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2130

2231
### Changed
2332

24-
- xarray accessor classes are now privates to avoid having them in autocomplementation.
33+
- xarray accessor classes are now privates to avoid having them in
34+
autocomplementation.
2535

2636
## [0.3.2] - 2024-12-10
2737

earthdaily/earthdatastore/cube_utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def _cube_odc(
164164
if isinstance(kwargs["resampling"], int):
165165
kwargs["resampling"] = Resampling(kwargs["resampling"]).name
166166

167-
kwargs["chunks"] = kwargs.get("chunks", dict(x="auto", y="auto", time=1))
167+
kwargs["chunks"] = kwargs.get("chunks", dict(x=512, y=512, time=1))
168168

169169
if "geobox" in kwargs.keys() and "geopolygon" in kwargs.keys():
170170
kwargs.pop("geopolygon")

0 commit comments

Comments
 (0)