Scattered Interpolation: Defining my own triangulation?
Show older comments
I'm interpolating data the comes from polar coordiate systems or terrain-following coordiante system used in numerical weather models. While that data isn't gridded in the since that it's not grid aligned, it is structured.
Scattered interpolation is slow. My understanding is that this stems from computing the delaunay triangulation. For my data it would be trivial to provide the triangulation connectivity graph along with the points.
Is there a way I can provide a pre computed triangulation to scatteredInterpolant or griddata in order to speed up my scattered interpolations? Is there some hidden class property I could fill in somewhere?
5 Comments
KSSV
on 17 Sep 2020
ScatteredInteprolant do not demand to provide triangulation connectivity. You need to provide only the (x,y,z) points.
millercommamatt
on 17 Sep 2020
Alexey Gorbunov
on 24 Sep 2020
I have the same problem. I need to interpolate scattered data with predefined triangulation.
In the previous MatLab versions, it was possible using TriScatteredInterp function.
% T - triangular endpoint indexes predefined;
% x,y - data coordinates;
% V - data values;
TR = triangulation(T, [x(:), y(:)]); % creating triangulation
C = edges(TR); % finding edges of the triangulation
DT = DelaunayTri(x(:), y(:), C); % Delaunay with predefined edges
F_ne = TriScatteredInterp(DT, V(:)); % Interpolant
I have not stil find any other solution for the task...
John Kearns
on 7 Jun 2023
Moved: KSSV
on 7 Jun 2023
Hey Matt,
Did you manage to find a solution to this? This idea has recently become relevant in my own work, and I would be grateful if you were able to share an successes you've had.
Cheers,
John
millercommamatt
on 7 Jun 2023
Answers (1)
Noah Prisament
on 12 Jun 2023
0 votes
Hi, I work at MathWorks and I wanted to let you all know that we have forwarded this feedback to the relevant team. We will consider this request and it may be included in a future release.
Categories
Find more on Delaunay Triangulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!