Re: [Numpy-discussion] reshaping arrays

2013-03-04 Thread Sudheer Joseph
best way to re-scale the data to depth lat dimensions from the indices 1-12 and 1-14 With best regards, Sudheer From: Benjamin Root To: Discussion of Numerical Python Sent: Monday, 4 March 2013 7:40 PM Subject: Re: [Numpy-discussion] reshaping arrays On Sat, Mar 2, 2013 at 11:35 PM

Re: [Numpy-discussion] reshaping arrays

2013-03-04 Thread Benjamin Root
On Sat, Mar 2, 2013 at 11:35 PM, Sudheer Joseph wrote: > Hi Brad, > I am not getting the attribute reshape for the array, are > you having a different version of numpy than mine? > > I have > In [55]: np.__version__ > Out[55]: '1.7.0' > and detail of the shape > > details of variab

Re: [Numpy-discussion] reshaping arrays

2013-03-02 Thread Sudheer Joseph
19 AM Subject: Re: [Numpy-discussion] reshaping arrays Thank you Brad, for the quick reply with solution, special thanks to the link for matlab users. with best regards, Sudheer   *** Sudheer Joseph Indian National Centre for Ocea

Re: [Numpy-discussion] reshaping arrays

2013-03-02 Thread Sudheer Joseph
*** From: Bradley M. Froehle To: Discussion of Numerical Python Sent: Sunday, 3 March 2013 8:50 AM Subject: Re: [Numpy-discussion] reshaping arrays On Sat, Mar 2, 2013 at 6:03 PM, Sudheer Joseph wrote: Hi all

Re: [Numpy-discussion] reshaping arrays

2013-03-02 Thread Bradley M. Froehle
On Sat, Mar 2, 2013 at 6:03 PM, Sudheer Joseph wrote: > Hi all, > For a 3d array in matlab, I can do the below to reshape it before > an eof analysis. Is there a way to do the same using numpy? Please help. > > [nlat,nlon,ntim ]=size(ssh); > tssh=reshape(ssh,nlat*nlon,ntim); > and afterwar

[Numpy-discussion] reshaping arrays

2013-03-02 Thread Sudheer Joseph
Hi all,         For a 3d array in matlab, I can do the below to reshape it before an eof analysis. Is there a way to do the same using numpy? Please help. [nlat,nlon,ntim ]=size(ssh); tssh=reshape(ssh,nlat*nlon,ntim); and afterwards eofout=[] eofout=reshape(eof1,nlat,nlon,ntime) with best regards