Skip to content

Commit

Permalink
error found in mosacking
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed Dec 3, 2024
1 parent 2ab9d1c commit 4fd52c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xcube_stac/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def groupby_solar_day(items: list[pystac.Item]) -> dict:


def mosaic_take_first(list_ds: list[xr.Dataset]) -> xr.Dataset:
if len(list_ds) == 1:
return list_ds[0]
dim = "dummy"
ds = xr.concat(list_ds, dim=dim)
if "crs" in ds:
Expand Down

0 comments on commit 4fd52c2

Please sign in to comment.