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

Add new "one-to-one" mode for modelling tides at multiple locations with unique timesteps #1142

Closed robbibt closed 11 months ago

robbibt commented 12 months ago

Proposed changes

Currently, the model_tides function operates in "one-to-many" mode, which will model tides for every requested timestep, at every requested location. For example, if we provided five x, y coordinates and five timesteps, the function would return:

5 locations * 5 timesteps = 25 modelled tides

However, often a user may want to model tides for a list of locations, each with a unique timesteps.

This change adds a new "one-to-one" mode, allowing users to model tides for only these exact pairs of locations and times. Using the previous example (five x, y coordinates and five timesteps) in "one-to-one" mode:

5 timesteps at 5 locations = 5 modelled tides

Example from notebook: image

Other changes:

Closes issues (optional)

Checklist (replace [ ] with [x] to check off)

review-notebook-app[bot] commented 11 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB