rotate_raster: Rotates the detrended DEM according to the main direction of...

Description Usage Arguments Value Examples

View source: R/rotate_raster.R

Description

Rotates the detrended DEM according to the main direction of the Fourier spectrum

Usage

1
rotate_raster(rstr, ang_fourier)

Arguments

rstr

a RasterLayer

ang_fourier

numeric, angle of the main component of the 2D Fourier spectrum; the rotation is clockwise

Value

a matrix corresponding to the DEM rotated in the main direction of the Fourier spectrum

Examples

1
2
3
4
r <- raster::raster(ncol = 3, nrow = 3)
raster::values(r) <- 1:(raster::ncell(r))
raster::as.matrix(r)
raster::as.matrix(rotate_raster(r, 45))

hrvg/statisticalRoughness documentation built on March 12, 2021, 4:55 p.m.