Re: fill in 3D array

2008-07-23 Thread Robert Kern
[EMAIL PROTECTED] wrote: On Jul 23, 9:18 pm, Robert Kern <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: Hi, I am a python newbie, trying to convert my IDL scripts to python. I am kind of stuck at the moment. I am reading in a 1-D data file with 2000 data points. I need to put them in a 3-D

Re: fill in 3D array

2008-07-23 Thread knielsen73
On Jul 23, 9:18 pm, Robert Kern <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi, > > > I am a python newbie, trying to convert my IDL scripts to python. I am > > kind of stuck at the moment. I am reading in a 1-D data file with 2000 > > data points. I need to put them in a 3-D array wi

Re: fill in 3D array

2008-07-23 Thread Robert Kern
[EMAIL PROTECTED] wrote: Hi, I am a python newbie, trying to convert my IDL scripts to python. I am kind of stuck at the moment. I am reading in a 1-D data file with 2000 data points. I need to put them in a 3-D array with size [10,10,20]. I have defined the field array as arr = zeros((10,10,20)

fill in 3D array

2008-07-23 Thread knielsen73
Hi, I am a python newbie, trying to convert my IDL scripts to python. I am kind of stuck at the moment. I am reading in a 1-D data file with 2000 data points. I need to put them in a 3-D array with size [10,10,20]. I have defined the field array as arr = zeros((10,10,20)) but don't know how to rea