Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parallelize conversions/lookup with dask/xarray ufuncs #95

Open
NiklasPhabian opened this issue Jul 26, 2022 · 0 comments
Open

parallelize conversions/lookup with dask/xarray ufuncs #95

NiklasPhabian opened this issue Jul 26, 2022 · 0 comments

Comments

@NiklasPhabian
Copy link
Member

It would seem like dasks makes things as easy as:

import dask.distributed
import pystare

sids = xarray.apply_ufunc(pystare.from_latlon_2d, lats_x, lons_x, dask="parallelized", kwargs={'level': level})
with dask.distributed.Client(n_workers=60, threads_per_worker=2, memory_limit='2GB') as client:
    sids = compute.compute()
sids = xarray.DataArray.to_numpy(sids)

We might want to wrap all the bottleneck functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant