Re: [Numpy-discussion] Loading a GB file into array

2007-12-03 Thread Francesc Altet
A Monday 03 December 2007, Martin Spacek escrigué: Sebastian Haase wrote: reading this thread I have two comments. a) *Displaying* at 200Hz probably makes little sense, since humans would only see about max. of 30Hz (aka video frame rate). Consequently you would want to separate your data

Re: [Numpy-discussion] display numpy array as image

2007-12-03 Thread Stefan van der Walt
Hi Zach Attached is some code for removing radial distortion from images. It shows how to draw lines based on user input using matplotlib. It is not suited for a big application, but useful for demonstrations. Try it on http://mentat.za.net/results/window.jpg Regards Stéfan On Thu, Nov

Re: [Numpy-discussion] display numpy array as image

2007-12-03 Thread Zachary Pincus
Hi Stéfan, Thanks -- I hadn't realized matplotlib's user-interaction abilities were that sophisticated! I'll definitely give that route a shot. Zach On Dec 3, 2007, at 9:46 AM, Stefan van der Walt wrote: Hi Zach Attached is some code for removing radial distortion from images. It shows

Re: [Numpy-discussion] Loading a GB file into array

2007-12-03 Thread Martin Spacek
Francesc Altet wrote: Perhaps something that can surely improve your timings is first performing a read of your data file(s) while throwing the data as you are reading it. This serves only to load the file entirely (if you have memory enough, but this seems your case) in OS page cache.

Re: [Numpy-discussion] Loading a GB file into array

2007-12-03 Thread Martin Spacek
Gael Varoquaux wrote: Very interesting. Have you made measurements to see how many times you lost one of your cycles. I made these kind of measurements on Linux using the real-time clock with C and it was very interesting ( http://www.gael-varoquaux.info/computers/real-time ). I want to redo