rastercon | R Documentation |
It computes equivalent of logical if function in R
rastercon(condition, trueValue, falseValue)
condition |
logical |
trueValue |
logical |
falseValue |
logical |
Return True or False
George Owusu
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.