Learn R Programming

gecko (version 1.0.2)

create.north: Create northness layer.

Description

Create a layer depicting northness based on an elevation layer.

Usage

create.north(layers)

Value

SpatRaster.

Arguments

layers

SpatRaster. A layer of elevation (a digital elevation model - DEM). As defined in package terra, see terra::rast().

Details

Using elevation, aspect can be calculated. Yet, it is a circular variable (0 = 360) and has to be converted to northness and eastness to be useful for modelling.

Examples

Run this code
region = gecko.data("layers")
terra::plot(create.north(region[[3]]))

Run the code above in your browser using DataLab