derivative in numpy

2008-07-28 Thread knielsen73
Hi, I am looking to do a simple derivative. I would expect such a function to be available in numpy, but can't find it. I have written my own, but just curious if anybody knows of such function in numpy. Cheers, Kim -- http://mail.python.org/mailman/listinfo/python-list

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

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