You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we have the 1d version of slices with groupby, e.g.,
for _, sl in data.groupby('raa'):
# work with DataArray with coordinates (wl, sza, vza)
(though the code does sort of implicitly assume that the values along the index are unique)
I agree, something like this would be nice. I think Iris now also has slices_over, e.g., data.slices_over(['sza', 'vza']) would be equivalent to your example, and it would be good to cover that case as well.
Activity
shoyer commentedon Oct 24, 2014
Right now we have the 1d version of
sliceswithgroupby, e.g.,(though the code does sort of implicitly assume that the values along the index are unique)
I agree, something like this would be nice. I think Iris now also has
slices_over, e.g.,data.slices_over(['sza', 'vza'])would be equivalent to your example, and it would be good to cover that case as well.max-sixty commentedon Jan 15, 2019
Closing as stale, please reopen if still relevant