def _run_dask_numpy(data: da.Array, cellsize: Union[int, float]) -> da.Array: data = data.astype(np.float32) _func = partial(_cpu, cellsize=cellsize) out = data.map_overlap(_func, depth=(1, 1), boundary=np.nan, meta=np.array(())) return out
def _run_dask_numpy(data: da.Array) -> da.Array: data = data.astype(np.float32) _func = partial(_run_numpy) out = data.map_overlap(_func, depth=(1, 1), boundary=np.nan, meta=np.array(())) return out