-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implementing map_overlap #3147
Comments
+1. The |
That sounds somewhat similar to |
Another approach for the def split_by_chunks(a):
for sl in da.core.slices_from_chunks(a.chunks):
yield (sl, a[sl]) While a little bit more cumbersome to write, this could be implemented with def split_by_chunks(a):
for i, sl in zip(np.ndindex(a.numblocks), da.core.slices_from_chunks(a.chunks)):
yield (sl, a.blocks[i]) If the slices are not strictly needed, this could be simplified a bit more. def split_by_chunks(a):
for i in np.ndindex(a.numblocks):
yield a.blocks[i] Admittedly We could consider other things like making |
|
I'm thinking through a
In I'm not sure how to handle the DataArray labels for the boundary chunks (dask docs at https://docs.dask.org/en/latest/array-overlap.html#boundaries). For |
This issue about coordinate labels for boundaries exists with pad too: #3868 Can Or perhaps we can expect users to add a call to |
Thanks for that link. I hope that map_overlap could use pad internally for
the external boundaries.
…On Mon, Aug 3, 2020 at 3:22 PM Deepak Cherian ***@***.***> wrote:
This issue about coordinate labels for boundaries exists with pad too:
#3868 <#3868>
Can map_overlap just use DataArray.pad and we can fix things there?
Or perhaps we can expect users to add a call to pad before map_overlap?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3147 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKAOIWLGJZYO63S7IXTEH3R64MAZANCNFSM4IFAIWOA>
.
|
Yeah +1 for using |
In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity If this issue remains relevant, please comment here or remove the |
Would be good to keep this open |
Indeed, this would be very useful in a great number of cases! |
very much in need of this one to able satellite image filtering across blocks |
+1 that would be super useful. |
Just as there are
map_blocks
andmap_overlap
methods for Dask Array, it would be useful to have equivalent methods for Xarray objects. This would make it easier to leverage duck typing to work with both Dask Arrays and Xarray objects.Edit: Should add this came up a few times at the recent SciPy sprints.
The text was updated successfully, but these errors were encountered: