Description Usage Arguments Value Examples
Generates raster maps of slope, aspect, curvatures and partial derivatives from an elevation raster map
1 2 | grass_slope(input, output, format = 1, precision = 0, z_factor = 1,
min_slope = 0)
|
input |
raster object or <chr>. Input file source or raster object type |
output |
tif. Input file destination |
format |
Format for reporting the slope. 0 - degrees, 1 - percent |
precision |
Type of output aspect and slope maps. 0 - float, 1 - double, 2 - int |
z_factor |
multiplicative factor to convert elevation units to meters |
min_slope |
can be used to specify the minimum slope which is computed |
RasterLayer
1 2 3 4 5 6 7 | slope <- grass_slope(input = 'Spatial/DEM/DEM.tif',
output = 'Spatial/DEM/new.tif',
z_factor = 0.3048)
slope <- grass_slope(input = DEM,
output = 'Spatial/DEM/new.tif',
z_factor = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.