Skip to content

Commit

Permalink
change default chunks in odc stac
Browse files Browse the repository at this point in the history
x=512, y=512, time=1
  • Loading branch information
nicolasK committed Nov 2, 2023
1 parent 4afb396 commit 5f2fcd8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions earthdaily/earthdatastore/cube_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _cube_odc(items_collection, assets=None, times=None, **kwargs):
if "resampling" in kwargs:
if isinstance(kwargs["resampling"], int):
kwargs["resampling"] = Resampling(kwargs["resampling"]).name
chunks = kwargs.get("chunks", dict(x="auto", y="auto", time="auto"))
chunks = kwargs.get("chunks", dict(x="512", y="512", time="1"))
kwargs.pop("chunks", None)

ds = stac.load(
Expand All @@ -55,7 +55,6 @@ def _cube_odc(items_collection, assets=None, times=None, **kwargs):
groupby=None,
**kwargs,
)
ds = ds.chunk(dict(x=256, y=256))

return ds

Expand Down

0 comments on commit 5f2fcd8

Please sign in to comment.