terrain_model: Get topographic rasters

View source: R/terrain_model.R

terrain_modelR Documentation

Get topographic rasters

Description

Calculate the SpatRasters needed for the terrain model.

Usage

terrain_model(
  topograp = TRUE,
  Polygon1,
  sourceCCL,
  sourceCCLRoughness,
  plotit = FALSE,
  verbose = FALSE
)

Arguments

topograp

Boolean value, which indicates if the terrain effect model should be enabled or not. Default is FALSE

Polygon1

The considered area as SpatialPolygon, SimpleFeature Polygon or coordinates as matrix/data.frame

sourceCCL

The path to the Corine Land Cover raster (.tif). Only required when the terrain effect model is activated.

sourceCCLRoughness

The source to the adapted Corine Land Cover legend as .csv file. Only required when terrain effect model is activated. As default a .csv file within this package (‘~/extdata’) is taken that was already adapted manually.

plotit

Plots the elevation data

verbose

If TRUE it will print information for every generation. Default is FALSE

Value

A list of SpatRasters

Examples

## Not run: 
library(sf)
Polygon1 <- sf::st_as_sf(sf::st_sfc(
  sf::st_polygon(list(cbind(
    c(4651704, 4651704, 4654475, 4654475, 4651704),
    c(2692925, 2694746, 2694746, 2692925, 2692925)
  ))),
  crs = 3035
))
Polygon_wgs84 <- sf::st_transform(Polygon1, st_crs(4326))
srtm <- elevatr::get_elev_raster(locations = as(Polygon_wgs84, "Spatial"), z = 11)
res <- terrain_model(srtm, Polygon1)

## End(Not run)

YsoSirius/windfarmGA documentation built on March 13, 2024, 8:37 a.m.