Example #1
0
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
Example #2
0
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