EXCITED-CO2 / xarray-regrid

Regridding utility for xarray
Apache License 2.0
55 stars 5 forks source link

Conservative: speed up with sparse #4

Closed BSchilperoort closed 9 months ago

BSchilperoort commented 10 months 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.