Skip to content

Commit bcbb03e

Browse files
authored
Update coastal.py (#1155)
1 parent 506681e commit bcbb03e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Tools/dea_tools/coastal.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,11 @@ def _pixel_tides_resample(
768768
# hundreds of tiny x and y chunks due to the small size of
769769
# `tides_lowres` (possible odc.geo bug?)
770770
if dask_chunks == "auto":
771-
if (y_dim in ds.chunks) & (x_dim in ds.chunks):
772-
dask_chunks = (ds.chunks[y_dim], ds.chunks[x_dim])
771+
if ds.chunks is not None:
772+
if (y_dim in ds.chunks) & (x_dim in ds.chunks):
773+
dask_chunks = (ds.chunks[y_dim], ds.chunks[x_dim])
774+
else:
775+
dask_chunks = ds.odc.geobox.shape
773776
else:
774777
dask_chunks = ds.odc.geobox.shape
775778

0 commit comments

Comments
 (0)