Skip to content

Commit

Permalink
allow rectifying dataset for nd
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed Dec 20, 2024
1 parent fa79e87 commit 234a3d8
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 391 deletions.
4 changes: 3 additions & 1 deletion xcube/core/gridmapping/regular.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ def _new_xy_coords(self) -> xr.DataArray:
xy_coords = da.concatenate(
[da.expand_dims(x_coords_2d, 0), da.expand_dims(y_coords_2d, 0)]
)
xy_coords = da.rechunk(xy_coords, chunks=(2, 512, 512))
xy_coords = da.rechunk(
xy_coords, chunks=(2, xy_coords.chunksize[1], xy_coords.chunksize[2])
)
xy_coords = xr.DataArray(
xy_coords,
dims=("coord", self.y_coords.dims[0], self.x_coords.dims[0]),
Expand Down
Loading

0 comments on commit 234a3d8

Please sign in to comment.