File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3,17 +3,16 @@ How to make a slope map
3
3
4
4
This tutorial show how to make a slope map of the moon from a geographic grid.
5
5
6
+ We utilize ``grdgradient `` to calculate the gradient magnitude (i.e., dz/dr).
6
7
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).
9
9
Finally, we convert this gradient to degrees with ``grdmath ``.
10
10
11
11
.. gmtplot ::
12
12
13
13
# Make a slope map of the moon.
14
- gmt set PROJ_ELLIPSOID moon
15
14
# 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
17
16
# Convert gradient to degrees
18
17
gmt grdmath gradient.nc ATAND = moon_slope.nc
19
18
# Make map with colorbar
You can’t perform that action at this time.
0 commit comments