<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><font size="1"><div>Hi all,</div><div>        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.</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">[nlat,nlon,ntim ]=size(ssh);</div><div>tssh=reshape(ssh,nlat*nlon,ntim);</div></font></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">and afterwards</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">eofout=[]</div><div style="font-family: 'times new
 roman', 'new york', times, serif; font-size: 12pt;">eofout=reshape(eof1,nlat,nlon,ntime)</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">with best regards,</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Sudheer</div>  </div></body></html>