# Confusion on Creating Gridded Interpolations

**URL:** <https://discourse.julialang.org/t/confusion-on-creating-gridded-interpolations/50205>\
**Category:** General Usage\
**Tags:** question, packages, interpolations\
**Created:** [November 16, 2020, 1:15am UTC](https://discourse.julialang.org/t/confusion-on-creating-gridded-interpolations/50205 "2020-11-16T01:15:05Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [August 13, 2021, 9:30am UTC](https://discourse.julialang.org/t/confusion-on-creating-gridded-interpolations/50205/21 "2021-08-13T09:30:29Z")

</div>

> [@Humphrey\_Lee](#):
>
> How does GMT.jl compare against GeoStats.jl?

The two packages have different purposes but for this specific gridding problem, GMT surface solution (_using splines under tension_) would provide a deterministic solution while the GeoStats package would provide a probabilistic one (_by exploiting any spatial correlations present by using krigging for instance_).

See an interesting discussion on this topic [here](https://www.neonscience.org/resources/learning-hub/tutorials/spatial-interpolation-basics).

---

<div class="post-metadata">

**Author:** ![Humphrey\_Lee](https://avatars.discourse-cdn.com/v4/letter/h/a88e4f/32.png) [@Humphrey\_Lee](https://discourse.julialang.org/u/Humphrey_Lee)\
**Post date:** [August 13, 2021, 9:44am UTC](https://discourse.julialang.org/t/confusion-on-creating-gridded-interpolations/50205/22 "2021-08-13T09:44:29Z")

</div>

Thanks for the summary.

---

<div class="post-metadata">

**Author:** ![likanzhan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/likanzhan/32/26354_2.png) [@likanzhan](https://discourse.julialang.org/u/likanzhan)\
**Post date:** [January 8, 2022, 1:13pm UTC](https://discourse.julialang.org/t/confusion-on-creating-gridded-interpolations/50205/23 "2022-01-08T13:13:56Z")

</div>

I’ve tried the code as being described here to plot some [Topographic EEG/MEG plot](https://www.mathworks.com/matlabcentral/fileexchange/72729-topographic-eeg-meg-plot) using Julia. The results are not quite satisfying, however.

The methods are described as follows in MatLab: [griddata](https://www.mathworks.com/help/matlab/ref/griddata.html?s_tid=srchtitle_griddata_1) .

I’m wondering whether it results from the method difference to interpolate values?

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [January 8, 2022, 1:29pm UTC](https://discourse.julialang.org/t/confusion-on-creating-gridded-interpolations/50205/24 "2022-01-08T13:29:22Z")

</div>

@likanzhan, you may check other options in [this other thread](https://discourse.julialang.org/t/plot-3d-data-in-a-2d-contour-plot/71251), in particular GMT.jl and DIVAnd.jl.

_NB:_  
GMT’s splines in tension method also produces “_surfaces that always pass through the data points_”

[Previous page](https://discourse.julialang.org/t/confusion-on-creating-gridded-interpolations/50205.md?page=1)
