grass_slope: Slope

Description Usage Arguments Value Examples

Description

Generates raster maps of slope, aspect, curvatures and partial derivatives from an elevation raster map

Usage

1
2
grass_slope(input, output, format = 1, precision = 0, z_factor = 1,
  min_slope = 0)

Arguments

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

Value

RasterLayer

Examples

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)

smitty1788/mercatoR documentation built on May 14, 2019, 3:03 p.m.