Re: [Numpy-discussion] concatenate and different numbers of dimensions

2007-02-12 Thread Torgil Svensson
As the error-message say, they must match number of dimensions, try: concatenate((tempLevel, temp[newaxis,...]), axis=0) On 2/13/07, Evan Mason <[EMAIL PROTECTED]> wrote: > Hi, I am trying to use concatenate to join together a 40x50x45 array and a > 50x45 array. The shape of the resulting array s

[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