Re: reshape and keep x,y,z ordering

2016-06-07 Thread Heli
Thanks Michael, This did the trick. array.flatten('F') works exactly as I need. Thanks a lot, -- https://mail.python.org/mailman/listinfo/python-list

Re: reshape and keep x,y,z ordering

2016-06-07 Thread Michael Selik
On Tue, Jun 7, 2016 at 7:31 AM Heli wrote: > Hello, > I have a question regarding reshaping numpy array. > > I either have a 1D array that I need to reshape to a 3D array or a 3D > array to reshape to a 1d numpy array. > > In both of these cases it is assumed that data follows x,y,z ordering. > a

Re: reshape and keep x,y,z ordering

2016-06-07 Thread Joel Goldstick
On Tue, Jun 7, 2016 at 7:25 AM, Heli wrote: > Hello, > > I have a question regarding reshaping numpy array. > > I either have a 1D array that I need to reshape to a 3D array or a 3D array > to reshape to a 1d numpy array. > > In both of these cases it is assumed that data follows x,y,z ordering.

reshape and keep x,y,z ordering

2016-06-07 Thread Heli
Hello, I have a question regarding reshaping numpy array. I either have a 1D array that I need to reshape to a 3D array or a 3D array to reshape to a 1d numpy array. In both of these cases it is assumed that data follows x,y,z ordering. and I use the following to reshape the numpy array.