dot-demo_landscape: Create Raster with Random pixel Value

.demo_landscapeR Documentation

Create Raster with Random pixel Value

Description

This function creates a raster series with some setup like the layer name and the sample value for the lulc

Usage

.demo_landscape(
  year,
  nrows = 100,
  ncols = 100,
  res = 1,
  xmn = 0,
  xmx = 100,
  ymn = 0,
  ymx = 100,
  crs = NA,
  category = 1:5,
  prob = NULL
)

Arguments

year

numeric. A vector of year, first and last included.

nrows

numeric. nrows of the raster to be created.

ncols

numeric. ncols of the raster to be created.

res

numeric. the resolution of the raster to be created.

xmn

numeric. x minimum extent.

xmx

numeric. x maximum extent.

ymn

numeric. y minimum extent.

ymx

numeric. y maximum extent.

crs

character. the coordinate referencing system.

category

A numeric vector of the raster categories.

prob

A numeric vector of the probability of occurrence for the category list.

Value

list

See Also

raster

Examples

.demo_landscape(year =  2000:2005,
                res = 1,
                crs = "+proj=utm +zone=21 +south +ellps=GRS80 +units=m +no_defs")


OpenLand documentation built on May 29, 2024, 4:35 a.m.