Re: 4D arrays

2015-12-02 Thread Manolo Martínez
On 12/01/15 at 06:47pm, Peter Otten wrote: > Extract 2D arrays: > > >>> a[:,2,3] > array([[ 55, 56, 57, 58, 59], >[115, 116, 117, 118, 119]]) > >>> a[1,:,2] > array([[ 70, 71, 72, 73, 74], >[ 90, 91, 92, 93, 94], >[110, 111, 112, 113, 114]]) The first one is eq

Re: 4D arrays

2015-12-01 Thread Peter Otten
jorge.conr...@cptec.inpe.br wrote: > I use the IDL but now I'm change to PYTHON. I have a 4D array (time, > level,lon,lat). I would like to get a 2D array for a specific time > (time1) and level (level1). In IDL I use: 2Darray = > 4Darray(time1,level1,*,*). How can I get the 2D array in Python Wi

4D arrays

2015-12-01 Thread jorge . conrado
Hi, I use the IDL but now I'm change to PYTHON. I have a 4D array (time, level,lon,lat). I would like to get a 2D array for a specific time (time1) and level (level1). In IDL I use: 2Darray = 4Darray(time1,level1,*,*). How can I get the 2D array in Python Conrado -- https://mail.python.or