Learn R Programming

OpenLand (version 1.0.2)

.demo_landscape: Create Raster with Random pixel Value

Description

This function create a raster serie 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 numreric vector of the probability of occurrence for the category list.

Value

list

See Also

raster

Examples

Run this code
# NOT RUN {
.demo_landscape(year =  2000:2005,
                res = 1,
                crs = "+proj=utm +zone=21 +south +ellps=GRS80 +units=m +no_defs")

# }

Run the code above in your browser using DataLab