xcdat
xcdat copied to clipboard
[Enhancement]: Improve Regrid2 performance
Is your feature request related to a problem?
Slow performance in Regrid2
Describe the solution you'd like
The #752 PR added support for Regrid2 to output weights as a sparse array. The regridder should utilize weights stored in this format. I'm proposing the following changes:
- Create weights directly into sparse array
- Update the algorithm to utilize
apply_ufuncand the sparse array weights
The end goal should be an improvement to the Regrid2 performance.
Describe alternatives you've considered
No response
Additional context
No response