fetch3.nhl_transpiration.NHL_functions#
NHL transpiration#
This module calculates non-hydrodynamically limited transpiration. This code was ported from FETCH2’s MATLAB code (see Mirfenderesgi et al 2016)
Functions
Calculates the temperature-dependent conductance coefficient. |
|
Creates vertical leaf area distribution. |
|
Calculate NHL transpiration #TODO make docstring |
|
Calls NHL for each timestep in the met data #TODO docstring |
|
Calculates the saturation vapor pressure using the Clausius-Clapeyron equation. |
|
Calculates the leaf boundary layer conductance and resistance, assuming laminar boundary layer. |
|
Calculates the effective leaf conductance. |
|
Calculates gs according to Leuning 1995 |
|
Calculates the mixing length for each height in z. |
|
Modifies transpiration timeseries to set nighttime transpiration to be almost zero |
|
Calculates the vertical attenuation of radiation through the canopy |
|
Calculates respiration. |
|
Calculates the restriction for NHL transpiration due to the hydrodynamic effects of xylem water potential. |
|
Calculates the water vapor source from the leaf. |
|
Calculates transpiration for FETCH3 |
|
Calculates vapor pressure deficit from air temperature and relative humidity. |
|
Calculates the solar zenith angle, based on Campbell & Norman, 1998. |
|
Solves the momentum equation to calculate the vertical wind profile. |
|
Calculates photosynthesis and stomatal conductance Uses Leuning model for stomatal conductance |
|
Thomas algorithm for solving tridiagonal matrix #TODO update docstring |
|
Writes NHL outputs to csv files |
|
Writes model output to netcdf file |