Open
Description
There have been a number of threads discussing possible improvements/extensions to xray
indexing. The current indexing behavior for isel
is orthogonal indexing - in other words, each coordinate is treated independently (see #214 and #411 for more discussion).
So the question: what is the best way to incorporate diagonal or pointwise indexing in xray
? I see two main goals / applications:
- support simple form of
numpy
style integer array indexing - support pointwise array indexing along coordinates via computation of nearest-neighbor indexes - I think this can also be thought of as a form of resampling.
Input from @WeatherGod, @wholmgren, and @shoyer would be great.