{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Table of symbolic variables used in other worksheets\n", "Below, we import variables and their definitions and units from other worksheets and display them in a sorted table. We also generate latex code for inclusion in manuscript." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%%capture storage\n", "# The above redirects all output of the below commands to the variable 'storage' instead of displaying it.\n", "# It can be viewed by typing: 'storage()'\n", "# Setting up worksheet and importing equations for explicit leaf energy balance\n", "load('temp/Worksheet_setup.sage')" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Tables_of_variables.ipynb\n", "Worksheet_update.ipynb\n", "Worksheet_setup.ipynb\n", "stomatal_cond_eqs.ipynb\n", "leaf_chamber_eqs.ipynb\n", "leaf_chamber_data.ipynb\n", "leaf_enbalance_eqs.ipynb\n", "E_PM_eqs.ipynb\n" ] } ], "source": [ "# List all .ipynb files\n", "list_files = os.listdir('.')\n", "for fname in list_files:\n", " if fname[-5:] == 'ipynb':\n", " print fname" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": true }, "outputs": [], "source": [ "# From leaf_enbalance_eqs, E_PM_eqs and stomatal_cond_eqs\n", "\n", "load_session('temp/leaf_enbalance_eqs.sobj')\n", "dict_vars1 = dict_vars.copy()\n", "\n", "load_session('temp/stomatal_cond_eqs.sobj')\n", "dict_vars1.update(dict_vars)\n", "\n", "load_session('temp/E_PM_eqs.sobj')\n", "dict_vars1.update(dict_vars)\n", "\n", "dict_vars = dict_vars1.copy()\n", "fun_loadvars(vardict=dict_vars) # re-loading variable definitions\n", "udict = {}\n", "for key1 in dict_vars.keys():\n", " udict[key1] = dict_vars[key1]['units'] # exporting units information from dict_vars to udict, which will be used below." ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
Variable | \n", "Description (value) | \n", "Units | \n", "
---|---|---|
\n", " | Cross-sectional pore area | \n", "m | \n", "
\n", " | Fraction of one-sided leaf area covered by stomata (1 if stomata are on one side only, 2 if they are on both sides) | \n", "1 | \n", "
\n", " | Fraction of projected area exchanging sensible heat with the air (2) | \n", "1 | \n", "
\n", " | Thermal diffusivity of dry air | \n", "m s | \n", "
\n", " | Boundary layer thickness | \n", "m | \n", "
\n", " | Bowen ratio (sensible/latent heat flux) | \n", "1 | \n", "
\n", " | Latent heat transfer coefficient | \n", "J Pa m s | \n", "
\n", " | Sensible heat transfer coefficient | \n", "J K m s | \n", "
\n", " | Specific heat of dry air (1010) | \n", "J K kg | \n", "
\n", " | Concentration of water in the free air | \n", "mol m | \n", "
\n", " | Concentration of water in the leaf air space | \n", "mol m | \n", "
\n", " | Pore depth | \n", "m | \n", "
\n", " | Binary diffusion coefficient of water vapour in air | \n", "m s | \n", "
\n", " | Slope of saturation vapour pressure at air temperature | \n", "Pa K | \n", "
\n", " | Latent heat flux from leaf | \n", "J m s | \n", "
\n", " | Transpiration rate in molar units | \n", "mol m s | \n", "
\n", " | Latent heat flux from a wet surface | \n", "J m s | \n", "
\n", " | Water to air molecular weight ratio (0.622) | \n", "1 | \n", "
\n", " | Longwave emmissivity of the leaf surface (1.0) | \n", "1 | \n", "
\n", " | Fractional pore area (pore area per unit leaf area) | \n", "1 | \n", "
\n", " | Wind function in Penman approach, f(u) adapted to energetic units | \n", "J Pa m s | \n", "
\n", " | Gravitational acceleration (9.81) | \n", "m s | \n", "
\n", " | Boundary layer conductance to water vapour | \n", "m s | \n", "
\n", " | Boundary layer conductance to water vapour | \n", "mol m s | \n", "
\n", " | Diffusive conductance of a stomatal pore | \n", "mol m s | \n", "
\n", " | Stomatal conductance to water vapour | \n", "m s | \n", "
\n", " | Stomatal conductance to water vapour | \n", "mol m s | \n", "
\n", " | Total leaf conductance to water vapour | \n", "m s | \n", "
\n", " | Total leaf layer conductance to water vapour | \n", "mol m s | \n", "
\n", " | Psychrometric constant | \n", "Pa K | \n", "
\n", " | Average 1-sided convective transfer coefficient | \n", "J K m s | \n", "
\n", " | Sensible heat flux from leaf | \n", "J m s | \n", "
\n", " | Thermal conductivity of dry air | \n", "J K m s | \n", "
\n", " | Ratio | \n", "mol m s | \n", "
\n", " | Characteristic length scale for convection (size of leaf) | \n", "m | \n", "
\n", " | Pore length | \n", "m | \n", "
\n", " | Latent heat of evaporation (2.45e6) | \n", "J kg | \n", "
\n", " | Molar mass of nitrogen (0.028) | \n", "kg mol | \n", "
\n", " | Molar mass of oxygen (0.032) | \n", "kg mol | \n", "
\n", " | Molar mass of water (0.018) | \n", "kg mol | \n", "
\n", " | Grashof number | \n", "1 | \n", "
\n", " | Lewis number | \n", "1 | \n", "
\n", " | n=2 for hypostomatous, n=1 for amphistomatous leaves | \n", "1 | \n", "
\n", " | Nusselt number | \n", "1 | \n", "
\n", " | Pore density | \n", "m | \n", "
\n", " | Critical Reynolds number for the onset of turbulence | \n", "1 | \n", "
\n", " | Reynolds number | \n", "1 | \n", "
\n", " | Sherwood number | \n", "1 | \n", "
\n", " | Kinematic viscosity of dry air | \n", "m s | \n", "
\n", " | Air pressure | \n", "Pa | \n", "
\n", " | Partial pressure of nitrogen in the atmosphere | \n", "Pa | \n", "
\n", " | Partial pressure of oxygen in the atmosphere | \n", "Pa | \n", "
\n", " | Vapour pressure in the atmosphere | \n", "Pa | \n", "
\n", " | Saturation vapour pressure at air temperature | \n", "Pa | \n", "
\n", " | Vapour pressure inside the leaf | \n", "Pa | \n", "
\n", " | Prandtl number (0.71) | \n", "1 | \n", "
\n", " | One-sided boundary layer resistance to heat transfer ( in \\citet[][P. 231]{monteith_principles_2013}) | \n", "s m | \n", "
\n", " | Boundary layer resistance to water vapour, inverse of | \n", "s m | \n", "
\n", " | Leaf BL resistance in molar units | \n", "s m mol | \n", "
\n", " | End correction, representing resistance between evaporating sites and pores | \n", "s m mol | \n", "
\n", " | Longwave radiation away from leaf | \n", "J m s | \n", "
\n", " | Molar gas constant (8.314472) | \n", "J K mol | \n", "
\n", " | Pore radius (for ellipsoidal pores, half the pore width) | \n", "m | \n", "
\n", " | Solar shortwave flux | \n", "J m s | \n", "
\n", " | Stomatal resistance to water vapour \\citep[][P. 231]{monteith_principles_2013} | \n", "s m | \n", "
\n", " | Diffusive resistance of a stomatal pore | \n", "s m mol | \n", "
\n", " | Stomatal resistance to water vapour, inverse of | \n", "s m | \n", "
\n", " | Total leaf resistance to water vapour, | \n", "s m | \n", "
\n", " | Leaf BL resistance to water vapour, \\citep[][Eq. 13.16]{monteith_principles_2013} | \n", "s m | \n", "
\n", " | Diffusive resistance of a stomatal vapour shell | \n", "s m mol | \n", "
\n", " | Density of dry air | \n", "kg m | \n", "
\n", " | Density of air at the leaf surface | \n", "kg m | \n", "
\n", " | Factor representing stomatal resistance in \\citet{penman_physical_1952} | \n", "1 | \n", "
\n", " | Spacing between stomata | \n", "m | \n", "
\n", " | Stefan-Boltzmann constant (5.67e-8) | \n", "J K m s | \n", "
\n", " | Air temperature | \n", "K | \n", "
\n", " | Leaf temperature | \n", "K | \n", "
\n", " | Radiative temperature of objects surrounding the leaf | \n", "K | \n", "
\n", " | Molar volume of air | \n", "m mol | \n", "
\n", " | Wind velocity | \n", "m s | \n", "