Robert,
Thanks so much! This is exactly what I needed.
- Jack
> Ah, okay. It's a bit tricky, though. Yes, you need to use fancy
> indexing. Since axis you want to be index fancifully is not the first
> one, you have to be more explicit than you might otherwise want. For
_
Robert,
I can understand how this works if K is a constant time value but in my case K
varies at each location in the two-dimensional slice. In other words, if I was
doing this in a for loop I would do something like this
for i in range(numI):
for j in range(numJ):
k = slice(i,j)
Greetings,
I have an I,J,K 3D volume of amplitude values at regularly sampled time
intervals. I have an I,J 2D slice which contains a time (K) value at each I, J
location. What I would like to do is extract a subvolume at a constant +/- K
window around the slice. Is there an easy way to do thi