ordered_old: Ordered allocation

Description Usage Arguments Value Examples

View source: R/allocate.R

Description

Allocate land use change using the ordered algorithm.

Usage

1
2
3
ordered_old(lu0, lu0.vals, tprob, nb = NULL, nb.rules = NULL,
  transition.rules = NULL, hist.vals = NULL, mask.vals = NULL,
  demand, categories, order, stochastic)

Arguments

lu0

RasterLayer showing initial land use

lu0.vals

numeric containing non-NA values from lu0

tprob

matrix with land use suitability values. Columns should correspond to categories, rows should correspond with cells

nb

neighbourhood map. See CluesModel

nb.rules

neighbourhood rules. See CluesModel documentation

transition.rules

transition rules. See CluesModel documentation

hist.vals

numeric vector detailing the number of consecutive time steps each cell has been allocated to its current land use

mask.vals

numeric vector containing binary values where 0 indicates cells that are not allowed to change

demand

matrix with demand for each land use category in terms of number of cells to be allocated. The first row should be the number of cells allocated to the initial land use map, the second row should be the number of cells to allocate in the subsequent time point

categories

numeric vector containing land use categories

order

numeric vector of land use categories in the order that change should be allocated

stochastic

Logical indicating whether or not the allocation routine should be run in stochastic mode

...

additional arguments (none)

Value

numeric vector with updated land use values.

Examples

1
## See lulcc2-package examples

simonmoulds/lulcc2 documentation built on Dec. 23, 2021, 2:24 a.m.