Hello Robert,
I studied delaunay and mlab.griddata a bit while converting tinterp and 
saw the

"""
         tri = delaunay.Triangulation(x,y)
         # interpolate data
         interp = tri.nn_interpolator(z)
         zo = interp(xi,yi)
"""
stuff. In studying delaunay, however, it was/is not clear to me how to 
set up the "triangulation" for

delaunay.LinearInterpolator(triangulation, z, default_value=-1.#IND)

without going through delaunay. Any chance you could give an example of 
using delaunay to linearly interpolate on mesh x,y assuming data_pts, 
triangles, f_at_data_points are already given?

Best Regards,
Eric





Robert Kern wrote:

> 
> delaunay has a linear interpolator implemented in C++ that could be used for 
> this purpose, too. The natural neighbor interpolator is only for Delaunay 
> triangulations, but the linear interpolator should be usable for general 
> triangulations.
> 


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to