View source: R/radiationtools.R
canopy | R Documentation |
canopy
is used to calculate fractional canopy cover.
canopy(l, ref = 0)
l |
a SpatRaster object, two-dimensional array or matrix of leaf area index values as returned by |
ref |
leaf reflectance. |
Canopy cover calculated by this function is defined as 1 - the proportion of isotropic
radiation transmitted through the canopy. This is effectively te same as canopy
cover if ref
= 0, but if ref
is greater than zero, scattered light is also considered.
If l
is a raster object, a raster object is returned.
a SpatRaster object or a two-dimensional array of numeric values representing fractional canopy cover estimated as the proportion of isotropic radiation transmitted through the canopy.
library(terra)
l <- lai(aerial_image[,,3], aerial_image[,,4])
l <- if_raster(l, dtm1m) # convert to raster
fr <- mask(canopy(l),rast(dtm1m))
plot(fr, main = "Fractional canopy cover")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.