GeoMorphTB is an open-source approach for Evan's ArcGIS Geomorphometry & Gradient Metrics Toolbox (here). As open-source software solution GRASS GIS 7.x is used through RQGIS functionalities.
Currently, the following functions and algorithms are supported:
In order to use GeoMorphTB, RQGIS needs to be installed properly (see vignette("install_guide", package = "RQGIS")
).
You can install:
devtools::install_github("raff-k/GeoMorphTB")
The usage of GeoMorphTB is straightforward, simply based on the need of a digital elevation model. In the following example we gonna use the dem of the RQGIS-package.
# attach packages library("raster") library("RQGIS") # set the RQGIS-environment RQGIS::set_env() # get digital elevation model dem <- RQGIS::dem # dem is of class "RasterLayer"
Now, we can already start computing the implemented gradient and geomorphometric parameters.
# attach RQGIS library("GeoMorphTB") # computation of dissection dis <- GeoMorphTB::dissection(elevation = dem) # get summary and plot of result summary(raster::values(dis)) raster::plot(dis)
The result of the function is automatically loaded into R. However, if you do not want the file loaded in R, but stored on the hard disk, you can specify the function call as in the following example:
# as default, the file is saved to the current working directory GeoMorphTB::roughness(elevation = dem, load_output = FALSE, output = file.path(tempdir(), "roughness.tif"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.