GeoscienceAustralia / dea-notebooks

Repository for Digital Earth Australia Jupyter Notebooks: tools and workflows for geospatial analysis with Open Data Cube and Xarray
https://docs.dea.ga.gov.au/notebooks/
Apache License 2.0
442 stars 128 forks source link

Make dask configurable inside `pixel_tides` #1123

Closed robbibt closed 1 year ago

robbibt commented 1 year ago

Proposed changes

Currently the pixel_tides function uses Dask under the hood to resample our low resolution tide modelling outputs into the original higher-res pixels of our satellite data. Previously, we used .compute() inside the function to load our results into memory and return then as a normal xr.DataArray.

However, for certain applications it can be useful to return our tide modelling data as an un-computed Dask array, for example to use as part of a larger Dask workflow.

This PR adds two new params to pixel_tides which make Dask more configurable:

Also added a new test covering this functionality, and re-run the How_to_guides/Tidal_modelling.ipynb notebook.

review-notebook-app[bot] commented 1 year ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB