rastercon: Spatial Conditional function on raster object

View source: R/conditional.R

rasterconR Documentation

Spatial Conditional function on raster object

Description

It computes equivalent of logical if function in R

Usage

rastercon(condition, trueValue, falseValue)

Arguments

condition

logical

trueValue

logical

falseValue

logical

Value

Return True or False

Author(s)

George Owusu

Examples

## Not run: 
NDVI=raster(system.file("extdata","NDVI.grd",package="sebkc"))
albedo=raster(system.file("extdata","albedo.grd",package="sebkc"))
LAI=raster(system.file("extdata","LAI.grd",package="sebkc"))
  eNB=rastercon( NDVI<0 & albedo<0.47,0.99,rastercon(LAI>=3,0.98,0.97+(LAI*0.0033)))
  
## End(Not run)

gowusu/sebkc documentation built on July 28, 2023, 11:44 a.m.