# Interpolation of 2D non-uniform data

**URL:** <https://discourse.julialang.org/t/interpolation-of-2d-non-uniform-data/2540>\
**Category:** New to Julia\
**Tags:** interpolations\
**Created:** [March 8, 2017, 1:23pm UTC](https://discourse.julialang.org/t/interpolation-of-2d-non-uniform-data/2540 "2017-03-08T13:23:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![josimar](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@josimar](https://discourse.julialang.org/u/josimar)\
**Post date:** [March 8, 2017, 1:23pm UTC](https://discourse.julialang.org/t/interpolation-of-2d-non-uniform-data/2540/1 "2017-03-08T13:23:11Z")

</div>

Hi all,

I have 3 arrays:, X, Y and Velocity, which contain velocity measurements at non-uniform (x,y) locations.

I would like to create a 2D figure of interpolated velocities values.

I know there is the [https://github.com/tlycken/Interpolations.jl](https://github.com/tlycken/Interpolations.jl) package, however, since I am new to Julia I am having trouble in understanding how can it solve my problem.

If anyone can send along some resources for my specific problem, or perhaps explain how the above package ca be used, it would be greatly appreciated.

thank you

---

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [March 8, 2017, 2:09pm UTC](https://discourse.julialang.org/t/interpolation-of-2d-non-uniform-data/2540/2 "2017-03-08T14:09:41Z")

</div>

Have you seen [https://github.com/kbarbary/Dierckx.jl:](https://github.com/kbarbary/Dierckx.jl:) “Fit and evaluate 2-d splines at unstructured points.”

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [March 9, 2017, 1:44am UTC](https://discourse.julialang.org/t/interpolation-of-2d-non-uniform-data/2540/3 "2017-03-09T01:44:55Z")

</div>

I created this [NoteBook](https://github.com/joa-quim/GMT.jl/blob/master/WL_example_I.ipynb) illustrating how to interpolate with GMT. Others will follow showing figures prepared with GMT.
