Re: [Numpy-discussion] Binning

2011-12-22 Thread josef . pktd
On Thu, Dec 22, 2011 at 11:39 AM, Adrien wrote: > Le 22/12/2011 17:17, josef.p...@gmail.com a écrit : >> On Thu, Dec 22, 2011 at 6:27 AM, Adrien Gaidon  wrote: >>> Hello Nicola, >>> >>> I am not aware of a magical "one function" numpy solution (is there one >>> numpy gurus?). >>> >>> I don't know

Re: [Numpy-discussion] Binning

2011-12-22 Thread Adrien
Le 22/12/2011 17:17, josef.p...@gmail.com a écrit : > On Thu, Dec 22, 2011 at 6:27 AM, Adrien Gaidon wrote: >> Hello Nicola, >> >> I am not aware of a magical "one function" numpy solution (is there one >> numpy gurus?). >> >> I don't know if it's optimal, but here's how I usually do similar thing

Re: [Numpy-discussion] Binning

2011-12-22 Thread josef . pktd
On Thu, Dec 22, 2011 at 11:17 AM, wrote: > On Thu, Dec 22, 2011 at 6:27 AM, Adrien Gaidon wrote: >> Hello Nicola, >> >> I am not aware of a magical "one function" numpy solution (is there one >> numpy gurus?). >> >> I don't know if it's optimal, but here's how I usually do similar things. >> >>

Re: [Numpy-discussion] Binning

2011-12-22 Thread josef . pktd
On Thu, Dec 22, 2011 at 6:27 AM, Adrien Gaidon wrote: > Hello Nicola, > > I am not aware of a magical "one function" numpy solution (is there one > numpy gurus?). > > I don't know if it's optimal, but here's how I usually do similar things. > > I wrote a simple function that assigns points (any nu

Re: [Numpy-discussion] Binning

2011-12-22 Thread Adrien Gaidon
Hello Nicola, I am not aware of a magical "one function" numpy solution (is there one numpy gurus?). I don't know if it's optimal, but here's how I usually do similar things. I wrote a simple function that assigns points (any number of dimensions) to a regular multi-dimensional grid. It is here:

[Numpy-discussion] Binning

2011-12-22 Thread Nicola Creati
Hello, I have a cloud on sparse points that can be described by a Nx3 array (N is the number of points). Each point is defined by an x, y and z coordinate: x0 y0 z0 x1 y1 z1 ... ... ... xn yn zn I need to bin the cloud to a regular 2D array according to a desir