Skip to content

Commit 8f459c2

Browse files
committed
fix: set chunk dict. closes #940
1 parent 3a21961 commit 8f459c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sepal_ui/mapping/sepal_map.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,9 @@ def add_raster(
294294
color_list = [mpc.rgb2hex(cmap(i)) for i in range(cmap.N)]
295295

296296
da = rioxarray.open_rasterio(image, masked=True)
297-
da = da.chunk((1000, 1000))
297+
# print
298+
print(da)
299+
da = da.chunk({"x": 1000, "y": 1000})
298300

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

0 commit comments

Comments
 (0)