Skip to content

Commit

Permalink
Merge branch 'main' into doc/clarify-dev-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 committed Mar 7, 2022
2 parents ab8ac74 + 3a9cce8 commit 1fc43ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pygmt/src/sph2grd.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ def sph2grd(data, **kwargs):
- :class:`xarray.DataArray` if ``outgrid`` is not set
- None if ``outgrid`` is set (grid output will be stored in file set by
``outgrid``)
Example
-------
>>> import pygmt # doctest: +SKIP
>>> # Create a new grid from the remote file "EGM96_to_36.txt",
>>> # set the grid spacing to 1, and the region to "g"
>>> new_grid = pygmt.sph2grd(
... data="@EGM96_to_36.txt", spacing=1, region="g"
... ) # doctest: +SKIP
"""
with GMTTempFile(suffix=".nc") as tmpfile:
with Session() as lib:
Expand Down

0 comments on commit 1fc43ec

Please sign in to comment.