JuliaMath / Interpolations.jl

Fast, continuous interpolation of discrete datasets in Julia

Home Page:http://juliamath.github.io/Interpolations.jl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to interpolate over a points cloud using irregular grids?

mvanzulli opened this issue · comments

This is a minimal problem:

# Function to be interpolated
f(x,y) = 2 * x * y
# Points where the info is given
points = [(0.,0.), (.25,.5), (.75,0.9), (1.,0.25)]
# field at each point
f_measured = [f(p...) for p in points]
# point to interpolate
point_to_interpolate = (.5,.4) 

Screenshot from 2023-05-20 16-45-55

Is there a way to build an itp object ? I tried with irregular equispaced grid but is not the case.

Txs in advance

Thank you!