rcl_excluded_vals: Reclassify excluded values

Description Usage Arguments Value Examples

View source: R/get_absences.R

Description

This is a helper function for absences creation that takes a raster, and reclassifies it to 0-1 raster. Reclassified raster should be ESA CCI LC data. For the values_included argument, numerical vector of all land cover values in the raster (they are turned to value 1). For the values_excluded argument, numerical vector of land cover categories to be excluded from absence creation (usually the modeled category and urban/bare areas) should be provided (they are turned to value 0). Argument filename is the name of the temporary file created.

Usage

1
rcl_excluded_vals(x, vals_included, vals_excluded, filename)

Arguments

x

Input raster to be classified.

vals_included

Values of all possible categories (without the excluded values).

vals_excluded

Values to be excluded from absence creation. Usually modeled category or urban.

filename

Temporary file to write.

Value

Raster object.

Examples

1
None.

MirzaCengic/LUpak documentation built on July 18, 2019, 3:06 a.m.