JuliaMath / Interpolations.jl

Fast, continuous interpolation of discrete datasets in Julia
http://juliamath.github.io/Interpolations.jl/
Other
518 stars 110 forks source link

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

Closed mvanzulli closed 1 year ago

mvanzulli commented 1 year ago

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

mkitti commented 1 year ago

Try https://eljungsk.github.io/ScatteredInterpolation.jl/dev/

mvanzulli commented 1 year ago

Thank you!