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

calc_Kg

Calculates the temperature-dependent conductance coefficient.

calc_LAI_vertical

Creates vertical leaf area distribution.

calc_NHL

Calculate NHL transpiration #TODO make docstring

calc_NHL_timesteps

Calls NHL for each timestep in the met data #TODO docstring

calc_esat

Calculates the saturation vapor pressure using the Clausius-Clapeyron equation.

calc_gb

Calculates the leaf boundary layer conductance and resistance, assuming laminar boundary layer.

calc_geff

Calculates the effective leaf conductance.

calc_gs_Leuning

Calculates gs according to Leuning 1995

calc_mixing_length

Calculates the mixing length for each height in z.

calc_nighttime_trans

Modifies transpiration timeseries to set nighttime transpiration to be almost zero

calc_rad_attenuation

Calculates the vertical attenuation of radiation through the canopy

calc_respiration

Calculates respiration.

calc_stem_wp_response

Calculates the restriction for NHL transpiration due to the hydrodynamic effects of xylem water potential.

calc_transpiration_leaf

Calculates the water vapor source from the leaf.

calc_transpiration_nhl

Calculates transpiration for FETCH3

calc_vpd_kPa

Calculates vapor pressure deficit from air temperature and relative humidity.

calc_zenith_angle

Calculates the solar zenith angle, based on Campbell & Norman, 1998.

solve_C_closure

solve_Uz

Solves the momentum equation to calculate the vertical wind profile.

solve_leaf_physiology

Calculates photosynthesis and stomatal conductance Uses Leuning model for stomatal conductance

thomas_tridiagonal

Thomas algorithm for solving tridiagonal matrix #TODO update docstring

write_outputs

Writes NHL outputs to csv files

write_outputs_netcdf

Writes model output to netcdf file