View source: R/validate_cellplan.R
validate_cellplan | R Documentation |
Validate the cellplan. The cellplan is made valid whenever possible. It checks the format and whether are all required variables present. When land
, a mutlipolygon object that defines the region of interest, is specified, it checks whether all cells are inside this region.
validate_cellplan(
cp,
param,
elevation = NULL,
region = NULL,
envir = NULL,
fix = TRUE
)
cp |
cellplan
|
param |
parameter list created with |
elevation |
see argument |
region |
polygon shape. If specified, it checks if all cells are contained inside it |
envir |
raster layer that specifies the environment. For each raster tile, an indicator between 0 and 1 is required (open space is 0 and dense environment is 1). These values are scaled to the parameters |
fix |
should the cellplan that is not yet valid be made valid? If |
## Not run:
# set parameters
ZL_param <- prop_param()
# load data
data("ZL_cellplan", "ZL_muni", "ZL_elevation", "ZL_landuse")
# create environment layer (needed to calculate path loss exponent (ple))
ZL_envir <- combine_raster_layers(ZL_landuse, weights = c(1, 1, 1, 0, 0))
# validate cellplan
ZL_cellplan <- validate_cellplan(ZL_cellplan, param = ZL_param, region = ZL_muni,
envir = ZL_envir, elevation = ZL_elevation)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.