Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add slope algorithm #1088

Merged
merged 2 commits into from
Jan 29, 2025
Merged

Add slope algorithm #1088

merged 2 commits into from
Jan 29, 2025

Conversation

tayden
Copy link
Contributor

@tayden tayden commented Jan 28, 2025

Adds a slope algorithm that computes the slope of a raster in degrees from the horizontal. The intended range of output values is from 0 (horizontal) to 90 (vertical).

Since it's possible to convert to percentage slope using raster band math (b1/90), I didn't bother to include any parameters for controlling wether or not the algorithm outputs degrees or percent slope.

The only parameter for the algorithm is buffer, which follows the hillshade defaults. This can be used to reduce edge artifacts in the computed slope. Users should specify the same buffer for the tile request as they do for the algorithm parameter (which defaults to 3).

image

@tayden tayden marked this pull request as ready for review January 28, 2025 22:58
@vincentsarago vincentsarago self-requested a review January 29, 2025 09:19
@vincentsarago vincentsarago merged commit 9f0c29f into developmentseed:main Jan 29, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants