31 Aug
2016
31 Aug
'16
3 p.m.
Hello, I have mesh (more exactly: just a bunch of nodes) description with values associated to the nodes in a file, e.g. for a 3x3 mesh: 0 0 10 0 0.3 11 0 0.6 12 0.3 0 20 0.3 0.3 21 0.3 0.6 22 0.6 0 30 0.6 0.3 31 0.6 0.6 32 What is best way to read it in and get data structures like the ones I get from np.meshgrid? Of course, I know about np.loadtxt, but I'm having trouble getting the resulting arrays (x, y, values) in the right form and to retain association to the values. Thanks, Florian