Jordan Dawe wrote:
> 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?
An alternative
On 1/9/07, Jordan Dawe <[EMAIL PROTECTED]> wrote:
> 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
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
__