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
433 stars 127 forks source link

Add updated xr_interpolate func and tests #1205

Closed robbibt closed 4 months ago

robbibt commented 4 months ago

Proposed changes

This PR updates the existing interpolate_2d function into a brand new xr_interpolation function. Compared to interpolate_2d, this function:

Example Inverse Distance Weighted interpolated xarray output for a point gdf containing 7 columns:

image

Have added comprehensive tests, and deprecated interpolate_2d to be removed at a later date.

Checklist

(Replace [ ] with [x] to check off)

sandbox_spellchecker