Skip to content

Commit 9e39037

Browse files
authored
GPU and Dask support for classify module (#168)
* slope: float dtype * classify: correct docs * add dask support for reclassify * remove nodata param * add reclassify to __init__ * reclassify: add cupy gpu support * reclassify: add tests * reclassify: error messages in case dask cupy, update tests * is_cupy_backed: catch exception * reclassify: implemented dask and cupy backed case * refactor * refactor * quantile: number of quantiles if not enough unique values * reclassify: condense tests * quantile: add gpu support * quantile: refactor * remove scipy.stats dependence * quantile: dask numpy case * quantile: dask numpy case * quantile: error messages in case dask cupy * quantile: correct condition check * debugging * debugging * quantile: dask numpy case bug fixes * quantile: dask numpy case bug fixes * quantile: update tests * equal_interval: numpy case * equal_interval: cupy case * equal_interval: dask numpy backed case * equal_interval: error message if dask cupy case * natural_break: numpy case * natural break: cupy case * classify: condense tests * update readme
1 parent 3864421 commit 9e39037

File tree

6 files changed

+610
-154
lines changed

6 files changed

+610
-154
lines changed

README.md

100644100755
+4-4
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ In the GIS world, rasters are used for representing continuous phenomena (e.g. e
7070

7171
| Name | NumPy xr.DataArray | Dask xr.DataArray | CuPy GPU xr.DataArray | Dask GPU xr.DataArray |
7272
|:----------:|:----------------------:|:--------------------:|:-------------------:|:------:|
73-
| [Equal Interval](xrspatial/classify.py) | ✅️ | | | |
74-
| [Natural Breaks](xrspatial/classify.py) | ✅️ | | | |
75-
| [Reclassify](xrspatial/classify.py) | ✅️ | | | |
76-
| [Quantile](xrspatial/classify.py) | ✅️ | | | |
73+
| [Equal Interval](xrspatial/classify.py) | ✅️ | | | |
74+
| [Natural Breaks](xrspatial/classify.py) | ✅️ | | | |
75+
| [Reclassify](xrspatial/classify.py) | ✅️ | | | |
76+
| [Quantile](xrspatial/classify.py) | ✅️ | | | |
7777

7878
-------
7979

xrspatial/__init__.py

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
from xrspatial.zonal import crop # noqa
3636

3737
from xrspatial.classify import quantile # noqa
38+
from xrspatial.classify import reclassify # noqa
3839
from xrspatial.classify import equal_interval # noqa
3940
from xrspatial.classify import natural_breaks # noqa
4041

0 commit comments

Comments
 (0)