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 variable
In [57]: ssh??
Type: NetCDFVariable
String Form:
Namespace:
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 Ocean Information Services
Ministry of Earth Sciences, Govt. of Ind
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
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
Good afternoon list,
I am looking at feature tracking in a 2D numpy array, along the lines of Dixon
and Wiener 1993 (for tracking precipitating storms)
Identifying features based on threshold is quite trivial using ndimage.label
b_fld=np.zeros(mygrid.fields['rain_rate_A']['data'].shape)
rr=10
b