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 raster object, two-dimensional array or matrix of leaf area index values as returned by lai().

ref

leaf reflectivity.

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 raster 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(raster)
l <- lai(aerial_image[,,3], aerial_image[,,4])
l <- if_raster(l, dtm1m) # convert to raster
fr <- canopy(l)
fr[is.na(dtm1m)] <- NA
plot(fr, main = "Fractional canopy cover")

ilyamaclean/microclima documentation built on Oct. 31, 2023, 11:41 p.m.