xarray-contrib / xarray-regrid

Regridding utility for xarray
https://xarray-regrid.readthedocs.org/
Apache License 2.0
71 stars 7 forks source link

Conservative: speed up with sparse #4

Closed BSchilperoort closed 1 year ago

BSchilperoort commented 1 year ago

By using sparse.COO as the weights, the computation of the dot product can be sped up enormously. However, xarray.dot does not support this well.

We would have to compute the dot product outside of xarray, and rebuild the DataArray afterwards.