Skip to content

Commit a19d9ee

Browse files
authored
Add GPU and Dask support for Focal tools: mean, apply, hotspots (#238)
* refactor * move kernel creation to convolution.py * import fix * convolve_2d: remove padding, remove use_cuda param * convolve_2d: add cupy tests * nan edge effect * refactor * kernel: add tests * convolve_2d: dask numpy case * convolve_2d: dask cupy case, raise not implemented * convolution: test dask cupy not implemented * focal mean: refactor * focal mean: dask numpy case, nan edge effect * focal mean: check if exclude nan * focal mean: cupy case * focal mean: dask cupy case not implemented * focal apply: numpy case with test * focal apply: dask numpy case * focal apply: gpu cupy support * focal hotspots: refactor * focal hotspots: use raster.data for calculation * focal hotspots: refactor * focal hotspots: cupy case * focal hotspots: dask numpy case * focal hotspots: dask cupy case not implemented * update readme * flake8 fix * flake8 fix * hotspots: avoid early compute global_std * correct typo
1 parent 42998ef commit a19d9ee

File tree

5 files changed

+1087
-657
lines changed

5 files changed

+1087
-657
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ In the GIS world, rasters are used for representing continuous phenomena (e.g. e
9393

9494
| Name | NumPy xr.DataArray | Dask xr.DataArray | CuPy GPU xr.DataArray | Dask GPU xr.DataArray |
9595
|:----------:|:----------------------:|:--------------------:|:-------------------:|:------:|
96-
| [Apply](xrspatial/focal.py) | ✅️ | | | |
97-
| [Hotspots](xrspatial/focal.py) | ✅️ | | | |
98-
| [Mean](xrspatial/focal.py) | ✅️ | | | |
99-
| [Focal Statistics](xrspatial/focal.py) | ✅️ | | ✅️ | |
96+
| [Apply](xrspatial/focal.py) | ✅️ | ✅️ | ✅️ | |
97+
| [Hotspots](xrspatial/focal.py) | ✅️ | ✅️ | ✅️ | |
98+
| [Mean](xrspatial/focal.py) | ✅️ | ✅️ | ✅️ | |
99+
| [Focal Statistics](xrspatial/focal.py) | ✅️ | ✅️ | ✅️ | |
100100

101101
-------
102102

examples/user_guide/4_Focal.ipynb

100644100755
File mode changed.

0 commit comments

Comments
 (0)