makepath / xarray-spatial

Raster-based Spatial Analytics for Python
https://xarray-spatial.readthedocs.io/
MIT License
844 stars 85 forks source link

classify.reclassify(): consider using binary search? #758

Closed thuydotm closed 1 year ago

thuydotm commented 1 year ago

classify.reclassify() loops through all bins sequentially to search for the correct bin of a pixel value. In case of having many bins, using binary search will help improving the performance significantly.

brendancol commented 1 year ago

@thuydotm let's prioritize that...