[Numpy-discussion] concatenate and different numbers of dimensions

2007-02-12 Thread Evan Mason
Hi, I am trying to use concatenate to join together a 40x50x45 array and a 50x45 array. The shape of the resulting array should be 41x50x45. In [132]: tempLevel.shape Out[132]: (40, 50, 45) In [133]: temp.shape Out[133]: (50, 45) I've tried various ways to do this using concatenate but always

[Numpy-discussion] averaging array, with fill values

2007-02-09 Thread Evan Mason
Hi, I want to get the mean over an array with 3 dimensions. The array has, say, dimensions 2x3x4 and I want the result to be 3x4; so the averaging is to be done over the 1st dimension. Also, there are some fill values, and I want these to be excluded from the calculation. I know I can use the m