I have a 3D array A of shape (nz, ny, nx) and a 2D array B of shape (ny, 
nx) that contains integer indexes.  I want to generate a 2D array C of 
shape (ny, nx) composed of the values of A at the z-indexes specified in 
B.  Is there an easy way to do this?

Jordan
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to