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

Add support for dask and xarray #88

Open
djhoese opened this issue Dec 3, 2021 · 0 comments
Open

Add support for dask and xarray #88

djhoese opened this issue Dec 3, 2021 · 0 comments

Comments

@djhoese
Copy link
Member

djhoese commented Dec 3, 2021

Feature description

As discussed in pytroll/satpy#1910, calculations will generally perform better if they are wrapped in a da.map_blocks call when dask arrays are involved. The Satpy PR implements basic wrappers for this. In the long run it would be best if pyorbital had this builtin. @mraspaud had the idea of using a decorator that would detect if it was being given dask arrays or numpy arrays and wrap the function call in map_blocks if using dask arrays. Additionally, I think this functionality could be expanded to include xarray DataArrays.

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

No branches or pull requests

1 participant