Re: [Numpy-discussion] (cube max and reduction)
From: eat To: Discussion of Numerical Python Sent: Sunday, April 22, 2012 5:54 AM Subject: Re: [Numpy-discussion] (no subject) Thanks, this was useful. For a large cube, though, I had to loop through the indices of the maxima: for i in np.arange(0,
[Numpy-discussion] (no subject)
What would be the best way to remove the maximum from a cube and "collapse" the remaining elements along the z-axis ? For example, I want to reduce Cube to NewCube: >>> Cube array([[[ 13, 2, 3, 42], [ 5, 100, 7, 8], [ 9, 1, 11, 12]], [[ 25, 4, 15, 1],