I am kind of struggling with scattered interpolation in Julia for 2D. What I have is a bunch of points (x,y,w), where x and y are coordinates and w is the value. I want to interpolate onto a regular grid. Currently for me this can be achieved by calling Python using linear interpolation:
using PyPlot n = 100 X, Y, W = rand(n), rand(n), rand(n) interval = 0.02 xi = range(minimum(X), stop=maximum(X), step=interval) yi = range(minimum(Y), stop=maximum(Y), step=interval) # Perform linear interpolation of the data (x,y) on grid(xi,yi) triang = matplotlib.tri.Triangulation(X,Y) interpolator = matplotlib.tri.LinearTriInterpolator(triang, W) Xi = [y for x in xi, y in yi] Yi = [x for x in xi, y in yi] wi = interpolator(Xi, Yi)
Similar things can be done in MATLAB with scatteredInterpolant method.
I tried to look at the interpolation packages in Julia, but nothing works so far. Is there a native Julia way of doing this?