Skip to content

Commit 7533164

Browse files
committed
Remove gmt set and reorder the text.
1 parent 5eea58e commit 7533164

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/gallery/images/slope.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@ How to make a slope map
33

44
This tutorial show how to make a slope map of the moon from a geographic grid.
55

6+
We utilize ``grdgradient`` to calculate the gradient magnitude (i.e., dz/dr).
67
Since we are working with geographic coordinates (longitude and latitude),
7-
it is crucial to set the correct ellipsoid parameter first (in this case, for the moon).
8-
Next, we utilize ``grdgradient`` to calculate the gradient magnitude (i.e., dz/dr).
8+
it is crucial to set the correct ellipsoid parameter (in this case, for the moon).
99
Finally, we convert this gradient to degrees with ``grdmath``.
1010

1111
.. gmtplot::
1212

1313
# Make a slope map of the moon.
14-
gmt set PROJ_ELLIPSOID moon
1514
# Calculate gradient magnitude
16-
gmt grdgradient @moon_relief_15m -D -Sgradient.nc -fg
15+
gmt grdgradient @moon_relief_15m -D -Sgradient.nc -fg --PROJ_ELLIPSOID=moon
1716
# Convert gradient to degrees
1817
gmt grdmath gradient.nc ATAND = moon_slope.nc
1918
# Make map with colorbar

0 commit comments

Comments
 (0)