Re: [Numpy-discussion] populating an array

2009-03-02 Thread Robert Kern
On Mon, Mar 2, 2009 at 05:08, Brennan Williams wrote: > Ok... I'm using Traits and numpy. > I have a 3D grid with directions I,J and K. > I have NI,NJ,NK cells in the I,J,K directions so I have NI*NJ*NK cells > overall. > I have data arrays with a value for each cell in the grid. > I'm going to st

[Numpy-discussion] populating an array

2009-03-02 Thread Brennan Williams
Ok... I'm using Traits and numpy. I have a 3D grid with directions I,J and K. I have NI,NJ,NK cells in the I,J,K directions so I have NI*NJ*NK cells overall. I have data arrays with a value for each cell in the grid. I'm going to store this as a 1D array, i.e. 1ncells where ncells=NI*NJ*NK ra