File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 11
11
)
12
12
from pygmt .io import load_dataarray
13
13
14
+ __doctest_skip__ = ["sphinterpolate" ]
15
+
14
16
15
17
@fmt_docstring
16
18
@use_alias (
@@ -55,6 +57,15 @@ 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
57
59
``outgrid``)
60
+
61
+ Example
62
+ -------
63
+ >>> import pygmt
64
+ >>> # Load a table of Mars with longitude/latitude/radius columns
65
+ >>> mars_shape = pygmt.datasets.load_sample_data(name="mars_shape")
66
+ >>> # Perform Delaunay triangulation on the table data
67
+ >>> # to produce a grid with a 1 arc-degree spacing
68
+ >>> grid = pygmt.sphinterpolate(data=mars_shape, spacing=1, region="g")
58
69
"""
59
70
with GMTTempFile (suffix = ".nc" ) as tmpfile :
60
71
with Session () as lib :
You can’t perform that action at this time.
0 commit comments