We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8a7f9e commit 0e259d3Copy full SHA for 0e259d3
pygmt/src/sphinterpolate.py
@@ -11,6 +11,8 @@
11
)
12
from pygmt.io import load_dataarray
13
14
+__doctest_skip__ = ["sphinterpolate"]
15
+
16
17
@fmt_docstring
18
@use_alias(
@@ -55,6 +57,14 @@ def sphinterpolate(data, **kwargs):
55
57
- :class:`xarray.DataArray` if ``outgrid`` is not set
56
58
- None if ``outgrid`` is set (grid output will be stored in file set by
59
``outgrid``)
60
61
+ Example
62
+ -------
63
+ >>> import pygmt
64
+ >>> # Load a file of the shape of Mars
65
+ >>> mars_shape = pygmt.datasets.load_sample_data("mars_shape")
66
+ >>> # Perform a Delaunay triangulation of the data
67
+ >>> grid = pygmt.sphinterpolate(data=mars_shape, spacing=1, region="g")
68
"""
69
with GMTTempFile(suffix=".nc") as tmpfile:
70
with Session() as lib:
0 commit comments