-
Notifications
You must be signed in to change notification settings - Fork 14
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 map_overlap as a new core op #199
Comments
I think |
I've started an implementation of The nice thing about using |
This statement is confusing to me. Wouldn't |
That's certainly one way of implementing it. I assumed that Xarray did this, but it looks like it uses indexing instead; see #193 (comment). But my point was that it would be harder to have Cubed optimize a combination of |
It would be nice to add
map_overlap
alongsidemap_blocks
,blockwise
,rechunk
, andapply_gufunc
.It's currently not directly used within xarray (even within
xarray.map_blocks
, which builds a HLG), but maybe it could / should be used there (cc @dcherian)Regardless I think it should be on the wishlist as it is used in some other packages. For example
xgcm.apply_as_grid_ufunc
uses a pattern wheredask.array.map_overlap
is called from within the function supplied toxarray.apply_ufunc()
, (it wraps the actual numpy function, so the kwarg isdask='allowed'
). This is a trick that allows parallelism along all dimensions (both core dims and broadcast dims) for a large class of array algorithms of interest (e.g. differential functions).dask.map_overlap
is mostly implemented usingmap_blocks
.The text was updated successfully, but these errors were encountered: