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

Bug in curvature function for mcnab type #55

Closed
avkoehl opened this issue May 9, 2023 · 1 comment
Closed

Bug in curvature function for mcnab type #55

avkoehl opened this issue May 9, 2023 · 1 comment
Labels

Comments

@avkoehl
Copy link

avkoehl commented May 9, 2023

Hi, I am helping a lab mate with some code and we're having issues with McNab's curvature metric. It seems to always return values equal to the input raster. Am I missing something?

library("terra")
library("spatialEco")

dem = terra::rast(system.file("extdata", "elev.tif", package = "spatialEco"))
mcnab = spatialEco::curvature(dem, type="mcnab")

terra::plot(dem-mcnab)
Screenshot 2023-05-09 at 12 40 58 PM
sessionInfo()
Screenshot 2023-05-09 at 12 42 22 PM
@jeffreyevans
Copy link
Owner

jeffreyevans commented May 9, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants