canopy: Calculates canopy cover

View source: R/radiationtools.R

canopyR Documentation

Calculates canopy cover

Description

canopy is used to calculate fractional canopy cover.

Usage

canopy(l, ref = 0)

Arguments

l

a SpatRaster object, two-dimensional array or matrix of leaf area index values as returned by lai().

ref

leaf reflectance.

Details

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.

Value

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.

Examples

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")

ilyamaclean/microclima documentation built on Sept. 5, 2024, 8:37 p.m.