# Slopefile with high values

**URL:** <https://forum.generic-mapping-tools.org/t/slopefile-with-high-values/5982>\
**Category:** Q&A\
**Created:** [June 9, 2025, 6:04pm UTC](https://forum.generic-mapping-tools.org/t/slopefile-with-high-values/5982 "2025-06-09T18:04:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.generic-mapping-tools.org/u/Andreas)\
**Post date:** [June 9, 2025, 6:04pm UTC](https://forum.generic-mapping-tools.org/t/slopefile-with-high-values/5982/1 "2025-06-09T18:04:08Z")

</div>

1. When I made a slopefile with `grdgradient -Sslopefile`, of a bathymetric grid, my maximum values were above 9 **rad**. How is this possible? A sloping plane can have maximum a value of 90 **deg** (= \frac{\pi}{2} **rad** )!?

2. When I converted this grid containing **rad** , to **deg** , with **grdmath ATAND** , it correctly converts to _sensible_ **deg** values; I think the maximum values I got were 84 **deg** -something. This seems reasonable. Why does ~ 9 **rad** equal ~ 84 **deg**?

---

<div class="post-metadata">

**Author:** ![EJFielding](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ejfielding/32/82_2.png) [@EJFielding](https://forum.generic-mapping-tools.org/u/EJFielding)\
**Post date:** [June 9, 2025, 7:04pm UTC](https://forum.generic-mapping-tools.org/t/slopefile-with-high-values/5982/2 "2025-06-09T19:04:16Z")

</div>

Hi Andreas,

The `grdgradient` program output is not in radians, but in meters/meter (assuming your data is in meters) that is the tangent of the slope angle. That is why using the `ATAND` program converts it to slope in degrees.

---

<div class="post-metadata">

**Author:** ![Esteban82](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/esteban82/32/54_2.png) [@Esteban82](https://forum.generic-mapping-tools.org/u/Esteban82)\
**Post date:** [June 9, 2025, 7:19pm UTC](https://forum.generic-mapping-tools.org/t/slopefile-with-high-values/5982/3 "2025-06-09T19:19:24Z")

</div>

Here there is an example on how to make a slope map with GMT.

> **[How to make a slope map — GMT Examples documentation](https://www.generic-mapping-tools.org/gmt-examples/gallery/images/slope.html)**

---

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.generic-mapping-tools.org/u/Andreas)\
**Post date:** [June 9, 2025, 9:11pm UTC](https://forum.generic-mapping-tools.org/t/slopefile-with-high-values/5982/4 "2025-06-09T21:11:28Z")

</div>

Thank you both!
