I would like to create a grid-like group of variables in python from a table (e.g., one text file) for an N-dimensional dataset.
Suppose my data have the following format.
column_x = [x0, x1, x2, ..., xN]
column_y = [y0, y1, y2, ..., yN]
column_z = [z0, z1, z2, ..., zN]
column_values = [value0, value1, value2, ..., valueN]
Usually, I am interested in creating an interpolator, e.g., given (x,y,z), compute the corresponding value.
I have ran into this several times and always used some ugly hack. I was wondering if there is a clean, pythonic way of doing this.
Numpy/Scipy solutions are welcome!