perf(reader): replace the scipy.spatial.cKDTree with pygeos.STRtree to find the nearest node and element#894
perf(reader): replace the scipy.spatial.cKDTree with pygeos.STRtree to find the nearest node and element#894lyingTree wants to merge 1 commit intoOpenDrift:masterfrom
Conversation
…o find the nearest node and element Using pygeos.STRtree method will be more efficient than scipy.spatial.cKDTree when searching for the index of the nearest node and element. Closes OpenDrift#892
|
Thank you, have you tried to use strtree from shapely rather than from pygeos? Then we would avoid a new dependency, and pygeos will be deprecated in the future. |
I have tried to use shapely to complete this function, but now it's not a good choice. All in all, it's not a good choice now for here. |
Using pygeos.STRtree method will be more efficient than scipy.spatial.cKDTree when searching for the index of the nearest node and element.
Closes #889