Skip to content

Commit

Permalink
Update coastal.py (#1155)
Browse files Browse the repository at this point in the history
  • Loading branch information
erialC-P authored Dec 12, 2023
1 parent 506681e commit bcbb03e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Tools/dea_tools/coastal.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,8 +768,11 @@ def _pixel_tides_resample(
# hundreds of tiny x and y chunks due to the small size of
# `tides_lowres` (possible odc.geo bug?)
if dask_chunks == "auto":
if (y_dim in ds.chunks) & (x_dim in ds.chunks):
dask_chunks = (ds.chunks[y_dim], ds.chunks[x_dim])
if ds.chunks is not None:
if (y_dim in ds.chunks) & (x_dim in ds.chunks):
dask_chunks = (ds.chunks[y_dim], ds.chunks[x_dim])
else:
dask_chunks = ds.odc.geobox.shape
else:
dask_chunks = ds.odc.geobox.shape

Expand Down

0 comments on commit bcbb03e

Please sign in to comment.