There is still numerous functions that needs to be daskified, without clear implementation in already used libraries. - [ ] `rasters.sieve`: No clear implementation found anywhere. Maybe directly call [`xr.apply_ufunc`](https://tutorial.xarray.dev/advanced/apply_ufunc/simple_numpy_apply_ufunc.html#apply-ufunc) like [here](https://github.com/GeoscienceAustralia/dea-coastlines/blob/b7d07c00cab0f5d8c2f58a5065ccf5c10b967e23/coastlines/vector.py#L333)? - [ ] `rasters.merge_gtiff`: No clear implementation found anywhere. [Existing implementation in rioxarray](https://corteva.github.io/rioxarray/stable/rioxarray.html#rioxarray.merge.merge_arrays) but rasterio-based and no sign of Dask in it. - [x] `rasters.read_uint8_array`: No clear implementation found anywhere. Maybe directly call [`xr.apply_ufunc`](https://tutorial.xarray.dev/advanced/apply_ufunc/simple_numpy_apply_ufunc.html#apply-ufunc) because `np.unpackbits` don't exist in dask? - [x] `rasters.read_bit_array`: Should be straightforward once `rasters.unpackbits` is daskified - [ ] `rasters.vectorize`: use Geoutils - [x] `rasters.hillshade` and `rasters.slope`: Use `xarray-spatial` (or `xdem`, but seems less mature)? - [x] `rasters.collocate`: Use [`xarray-regrid`](https://github.com/xarray-contrib/xarray-regrid) in case rewriting ref coordinates in place isn't sufficient and reprojecting is too much? - [x] `rasters.crop`: rioxarray version is not daskified. - https://github.com/sertit/sertit-utils/issues/35
There is still numerous functions that needs to be daskified, without clear implementation in already used libraries.
rasters.sieve: No clear implementation found anywhere. Maybe directly callxr.apply_ufunclike here?rasters.merge_gtiff: No clear implementation found anywhere. Existing implementation in rioxarray but rasterio-based and no sign of Dask in it.rasters.read_uint8_array: No clear implementation found anywhere. Maybe directly callxr.apply_ufuncbecausenp.unpackbitsdon't exist in dask?rasters.read_bit_array: Should be straightforward oncerasters.unpackbitsis daskifiedrasters.vectorize: use Geoutilsrasters.hillshadeandrasters.slope: Usexarray-spatial(orxdem, but seems less mature)?rasters.collocate: Usexarray-regridin case rewriting ref coordinates in place isn't sufficient and reprojecting is too much?rasters.crop: rioxarray version is not daskified.