leaftemp | R Documentation |
Calculates leaf temperature from radiation fluxes and reference air and ground tempertaure
leaftemp(
tair,
relhum,
pk,
timestep,
gt,
gha,
gv,
Rabs,
previn,
vegp,
soilp,
theta,
zlafact = 1,
surfwet = 1
)
tair |
air temperature at two metres above canopy (deg C) |
relhum |
relative humidity at two metres above canopy (Percentage) |
pk |
air pressure at two metres above canopy (kPa) |
timestep |
duration of time step (s) |
gt |
heat conductance by turbulent convection (mol / m^2 / s) |
gha |
leaf-air heat conductance (mol / m^2 / s) |
gv |
leaf-air vapour conductance (mol / m^2 / s) |
Rabs |
Flux density of absorbed radiation as returned by |
previn |
list of values from previous timestep |
vegp |
list of vegetation paramaters (see e.g. |
soilp |
list Soil paramaters (see e.g. |
theta |
volumetric soil moisture fraction of top soil layer (m^3 / m^3) |
zlafact |
numeric value indicating how close to leaves air temperatures are needed for (1 - average leaf-air distance, 0.5 = half average leaf-air distance etc.). Must be greater than 1. |
surfwet |
Fraction of surface area acting like a free‐water surface |
leaftemp
computes the average leaf and air temperature of each canopy layer based on
radiation and evaorative fluxes and reference air and ground temperature. The function
automatically determines whether heat storage should be considered, based the specific heat
capacity of the vegetation layer and the time step of the model.
a list with the following elements:
tn
air temperature of each layer (deg C)
tleaf
leaf temperature of each layer (deg C)
ea
vapour pressure (kPa)
gtt
heat conductance to reference height two m above canopy
Rem
emitted radiation (W / m^2)
H
Sensible heat flux from leaf to air (W / m^2)
L
Latent heat of vapourisation from leaf to air (W / m^2)
# Generate paramaters for function:
tme <- as.POSIXlt(0, origin = "2020-05-04 12:00", tz = "GMT")
previn <- paraminit(20, 10, 10, 15, 2, 80, 11, 500)
vegp <- microctools::habitatvars(3, 50, -5, tme, m = 20)
soilp <- soilinit("Loam")
z<-c((1:20) - 0.5) / 20 * vegp$hgt
# run function (setting conductances in current time step to same as in previous):
ltemp <- leaftemp(11, 80, 101.3, 60, previn$gt, previn$gha, previn$gv, previn$Rabs, previn,
vegp, soilp, 0.3)
plot(z ~ ltemp$tleaf, type = "l", xlab = "Leaf temperature", ylab = "Height")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.