[SciPy-User] order data in a grid with numpy

Gabriele Brambilla gb.gabrielebrambilla at gmail.com
Fri Jul 17 15:24:54 EDT 2015


Hi,

I have 3 vectors containing x, y and f(x,y) values. They are ordered one
with respect to the others but completely disordered in itself.
Let's say, for sake of simplicity, that f=x+y
they are
x | y | f
1 | 2 | 3
5 | 1 | 6
....
And let's suppose that I know I have all the points to fill a grid.

I would like to obtain a mesh grid or a 2d python numpy array from it.

In c I know how to do it, but I know in python for cycles with element
substitutions are avoidable...

Do you have any solution?

Thanks

Gabriele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20150717/5cb038df/attachment.html>


More information about the SciPy-User mailing list