Skip to content

Commit

Permalink
fix: set chunk dict. closes #940
Browse files Browse the repository at this point in the history
  • Loading branch information
dfguerrerom committed Sep 12, 2024
1 parent 3a21961 commit 8f459c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sepal_ui/mapping/sepal_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,9 @@ def add_raster(
color_list = [mpc.rgb2hex(cmap(i)) for i in range(cmap.N)]

da = rioxarray.open_rasterio(image, masked=True)
da = da.chunk((1000, 1000))
# print
print(da)
da = da.chunk({"x": 1000, "y": 1000})

multi_band = False
if len(da.band) > 1 and not isinstance(bands, int):
Expand Down

0 comments on commit 8f459c2

Please sign in to comment.