Biomass

Parameterizations

ClimaLand.Canopy.PrescribedBiomassModel — Type
struct PrescribedBiomassModel{FT, PSAI <: PrescribedAreaIndices, RDTH <: Union{FT, ClimaCore.Fields.Field}} <: AbstractBiomassModel{FT}

A prescribed biomass model where LAI, SAI, RAI, rooting depth, and height are prescribed.

In global run with patches of bare soil, you can "turn off" the canopy model (to get zero root extraction, zero absorption and emission, zero transpiration and sensible heat flux from the canopy), by setting:

  • LAI = SAI = RAI = 0.

    • plant_area_index: The plant area index model for LAI, SAI, RAI

    • rooting_depth: Rooting depth parameter (m) - a characteristic depth below which 1/e of the root mass lies

    • height: Canopy height (m) - can be scalar (uniform) or spatially-varying Field

source
ClimaLand.Canopy.PrescribedBiomassModel — Method
PrescribedBiomassModel{FT}(
    domain,
    LAI::AbstractTimeVaryingInput,
    toml_dict::CP.ParamDict;
    SAI::FT = toml_dict["SAI"],
    RAI::FT = toml_dict["RAI"],
    rooting_depth = clm_rooting_depth(domain.space.surface),
    height =  clm_canopy_height(domain.space.surface)
) where {FT <: AbstractFloat}

Creates a PrescribedBiomassModel on the provided domain, using parameters from toml_dict.

The required argument LAI should be a ClimaUtilities TimeVaryingInput for leaf area index.

The following default parameters are used:

  • SAI = 0 (m2/m2) - stem area index
  • RAI = 1 (m2/m2) - root area index
  • height = 1m
source
ClimaLand.Canopy.PrescribedBiomassModel — Method
PrescribedBiomassModel{FT}(;LAI::AbstractTimeVaryingInput,
                            SAI::FT,
                            RAI::FT,
                            rooting_depth,
                            height) where {FT}

An outer constructor to help set up the PrescribedBiomassModel from LAI, SAI, and RAI directly, instead of requiring the user to make the area index object first; rooting_depth and height are also required.

Height can be either:

  • A scalar FT value (uniform height across domain)
  • A ClimaCore.Fields.Field (spatially-varying height)
source
ClimaLand.Canopy.PrescribedAreaIndices — Type

PrescribedAreaIndices{FS <: Union{AbstractFloat, ClimaCore.Fields.Field}, F <: AbstractTimeVaryingInput}

A struct containing the area indices of the plants at a specific site; LAI varies in time, while SAI and RAI are fixed in time and can either be a scalar (spatially uniform) or a ClimaCore Field (spatially varying).

  • LAI: A function of simulation time t giving the leaf area index (LAI; m2/m2)

  • SAI: The constant-in-time stem area index (SAI; m2/m2), scalar or Field

  • RAI: The constant-in-time root area index (RAI; m2/m2), scalar or Field

source
ClimaLand.Canopy.PrescribedAreaIndices — Method
PrescribedAreaIndices(
    LAI::AbstractTimeVaryingInput,
    SAI,
    RAI,
)

An outer constructor for setting the PrescribedAreaIndices given LAI, SAI, and RAI. SAI and RAI may be scalars or ClimaCore Fields.

source
ClimaLand.Canopy.area_index_from_max_lai — Function
area_index_from_max_lai(max_LAI, tree_share, factors::AreaIndexFromMaxLAI)

Stem or root area index (m^2 m^-2) proportional to the maximum LAI max_LAI, with the area index per unit of maximum LAI weighted between that of trees and grasses (factors) by the tree share tree_share.

source
ClimaLand.Canopy.AreaIndexFromMaxLAI — Type
AreaIndexFromMaxLAI{FT}(tree, grass)
AreaIndexFromMaxLAI{FT}(toml_dict, name)

A stem or root area index proportional to the maximum LAI, with the factors tree and grass, the area index per unit of maximum LAI of trees and grasses, weighted by the tree share (area_index_from_max_lai). From toml_dict, they are the parameters "$(name)_coeff_tree" and "$(name)_coeff_grass", with name "SAI" or "RAI". As the SAI or RAI of a ZhouOptimalLAIModel, it follows the model's own seasonal maximum LAI (LAI_max) and the tree share that sets the unit cost of leaves.

source
ClimaLand.Canopy.prescribed_lai_era5 — Function
 prescribed_lai_era5(era5_lai_ncdata_path,
                     era5_lai_cover_ncdata_path,
                     surface_space,
                     start_date,
                     earth_param_set;
                     time_interpolation_method = LinearInterpolation(PeriodicCalendar()),
                     regridder_type = :InterpolationsRegridder,
                     interpolation_method = Interpolations.Constant(),)

A helper function which constructs the TimeVaryingInput object for Leaf Area Index, from a file path pointing to the ERA5 LAI data in a netcdf file, a file path pointing to the ERA5 LAI cover data in a netcdf file, the surfacespace, the start date, and the earthparam_set.

This currently one works when a single file is passed for both the era5 lai and era5 lai cover data.

The ClimaLand default is to use nearest neighbor interpolation, but linear interpolation is supported by passing interpolation_method = Interpolations.Linear().

source
ClimaLand.Canopy.prescribed_lai_modis — Function
 prescribed_lai_modis(surface_space,
                      start_date
                      stop_date,
                      earth_param_set;
                      time_interpolation_method = LinearInterpolation(),
                      regridder_type = :InterpolationsRegridder,
                      interpolation_method = Interpolations.Constant(),
                      modis_lai_ncdata_path = nothing,
                      context = ClimaComms.context(surface_space))

A helper function which constructs the TimeVaryingInput object for Leaf Area Index using MODIS LAI data; requires the surfacespace, the start and stop dates, and the earthparam_set.

The ClimaLand default is to use nearest neighbor interpolation, but linear interpolation is supported by passing interpolation_method = Interpolations.Linear().

If modis_lai_ncdata_path is provided, it will be used directly. Otherwise, the path will be inferred from the start and stop dates.

source
ClimaLand.Canopy.prescribed_climatological_lai_modis — Function
 prescribed_climatological_lai_modis(surface_space,
                                     time_interpolation_method = LinearInterpolation(PeriodicCalendar(Year(1), DateTime(2000))),
                                     regridder_type = :InterpolationsRegridder,
                                     interpolation_method = Interpolations.Constant(),
                                     context = ClimaComms.context(surface_space))

A helper function which constructs the TimeVaryingInput object for Leaf Area Index using MODIS climatological LAI data; requires the surface_space.

The ClimaLand default is to use nearest neighbor interpolation, but linear interpolation is supported by passing interpolation_method = Interpolations.Linear().

source
ClimaLand.Canopy.update_plant_area_indices! — Function
update_plant_area_indices!(
    p,
    Y,
    t,
    component::PrescribedBiomassModel{FT},
    canopy,
) where {FT}

Sets the area indices pertaining to their values at time t.

Note that we clip all values of LAI below 0.05 to zero, and SAI to zero where the plant area index is below 0.05 (clip_absent_plant_area!). This is because we currently run into issues when LAI is of order eps(FT) in the SW radiation code. Please see Issue #644 or PR #645 for details. For now, this clipping is similar to what CLM and NOAH MP do.

source
update_plant_area_indices!(
    p,
    Y,
    t,
    component::ZhouOptimalLAIModel{FT},
    canopy,
) where {FT}

Updates the optimal-LAI cache from the prognostic state in Y: derives f0, vpd_gs and GSL from the trailing climate totals; sets the canopy composition (tree, C3 grass, C4 grass shares) from the C3/C4 competition on the trailing per-pathway potential GPP (A0c3_annual, A0c4_annual) and realized C3 GPP (GPPc3_annual), or the climate tree share; sets the seasonal maximum LAI LAI_max (set_max_leaf_area_index!); sets the leaf area index used by the rest of the canopy from the prognostic LAI and the canopy trees retain (set_leaf_area_index!), clipped below 0.05; and sets SAI and RAI (set_area_index!), zeroing SAI where plants are absent (clip_absent_plant_area!) and all area indices where a lake is present (mask_biomass!). This runs first in update_aux, before radiative transfer and photosynthesis read the area index and C3 fraction.

source
update_plant_area_indices!(p, Y, t, component::PrognosticCarbonModel, canopy)

Updates the area indices with the LAI model; the pools do not change them.

source
ClimaLand.Canopy.clip_absent_plant_area! — Function
clip_absent_plant_area!(area_index)

Sets the stem area index in area_index to zero where the plants are absent (plants_present), after the leaf area index has been clipped below 0.05. An absent canopy then neither absorbs radiation nor stores heat, so the relaxation of its temperature to the air temperature (make_compute_imp_tendency(::BigLeafEnergyModel, canopy)) changes no energy.

source
ClimaLand.Canopy.PrognosticCarbonModel — Type
PrognosticCarbonModel{FT, LM, PCP, RDTH, HTH, TSH, TIV} <: AbstractBiomassModel{FT}

Live vegetation carbon in four prognostic pools (kg C m^-2): C_sugar (non-structural carbon), C_leaf, C_stem (wood) and C_root (fine roots), driven by the GPP of the canopy:

dC_sugar/dt = GPP - Rm - G
dC_leaf/dt  = a f_leaf G - C_leaf/τ_leaf
dC_stem/dt  = a f_stem G - C_stem/τ_stem,  τ_stem = s τ_stem0
dC_root/dt  = a f_root G - C_root/τ_root

G is the sugar allocated to growth, (1 - a) G the growth respiration, Rm the maintenance respiration, and the turnover terms are the litter passed to soil carbon; see update_carbon_pools!. The allocation fractions are those of trees and grasses weighted by the tree share of the vegetation (leaf_allocation, stem_allocation): only trees build wood. The wood turnover time is that of warm climates, τ_stem0, lengthened in cold climates by the factor s (tau_stem_scale) of the mean annual temperature carried as a time-integrated variable (T_annual).

The pools wrap an LAI model, lai_model (PrescribedBiomassModel or ZhouOptimalLAIModel), which still sets the area indices: GPP and LAI are the same as without the pools. The canopy respiration comes from the pools, so this model requires PoolBasedAutotrophicRespirationModel.

  • lai_model: The LAI model setting the area indices

  • parameters: Parameters of the carbon pools

  • rooting_depth: Rooting depth (m), that of lai_model

  • height: Canopy height (m), that of lai_model

  • tree_share: Tree share of the vegetation (dimensionless): a scalar or Field, or ClimateTreeShare() for that of a ZhouOptimalLAIModel

  • time_integrated_vars: Time-integrated variables: the mean annual temperature

source
ClimaLand.Canopy.PrognosticCarbonModel — Method
PrognosticCarbonModel{FT}(
    lai_model,
    parameters::PrognosticCarbonParameters{FT};
    tree_share = default_tree_share(lai_model),
)
PrognosticCarbonModel{FT}(lai_model, toml_dict::CP.ParamDict; tree_share, kwargs...)

Wraps lai_model in the carbon pools, with parameters given directly or read from toml_dict (keyword arguments override them). The tree share that splits the allocation between trees and grasses defaults to that of a ZhouOptimalLAIModel, which also sets its leaf cost; with any other LAI model it must be given, as a scalar or a Field (e.g. clm_tree_share(surface_space)).

source
ClimaLand.Canopy.PrognosticCarbonParameters — Type
PrognosticCarbonParameters{FT <: AbstractFloat}

Parameters of the live carbon pools of PrognosticCarbonModel. The allocation fractions are those of trees and of grasses, weighted by the tree share of the vegetation; grasses build no wood, and roots take the rest of the allocation.

  • a: Construction efficiency (-): the fraction of the sugar allocated to growth that becomes structure; the rest is growth respiration

  • f_leaf_tree: Leaf allocation fraction of trees (-)

  • f_stem_tree: Wood allocation fraction of trees (-)

  • f_leaf_grass: Leaf allocation fraction of grasses (-), which build no wood

  • τ_leaf: Leaf turnover time (s)

  • τ_stem0: Wood turnover time at mean annual temperatures at or above T_ref_τ_stem (s)

  • τ_root: Fine-root turnover time (s)

  • r_stem: Sapwood maintenance respiration rate at T_ref (s^-1)

  • r_root: Fine-root maintenance respiration rate at T_ref (s^-1)

  • C_sap_half: Sapwood carbon as the stem grows large (kg C m^-2); sapwood is half the stem when C_stem equals it

  • c_nsc: Target sugar pool as a fraction of the living biomass (-)

  • τ_alloc: Timescale of allocation from the sugar pool (s)

  • n_alloc: Exponent of the allocation ramp (-)

  • C_sugar_ref: Sugar pool below which maintenance respiration shuts down (kg C m^-2)

  • Q10: Q10 of sapwood and fine-root maintenance respiration (-)

  • T_ref: Reference temperature of the maintenance respiration rates (K)

  • q_τ_stem: Factor by which wood turnover time lengthens per 10 K of mean annual temperature below T_ref_τ_stem (-); 1 disables

  • T_ref_τ_stem: Mean annual temperature below which wood turnover time lengthens (K)

  • τ_climate: Memory timescale of the mean annual temperature (s)

  • soil_litter_depth: E-folding depth of the leaf and stem litter input to soil carbon (m)

  • M_C: Molar mass of carbon (kg mol^-1)

source
ClimaLand.Canopy.update_carbon_pools! — Function
update_carbon_pools!(p, Y, biomass, canopy)

Updates the auxiliary variables of the carbon pools: the fluxes p.canopy.biomass.carbon (kg C m^-2 s^-1, carbon_pool_fluxes), the live carbon cVeg and σl_implied. Does nothing for a biomass model without pools. Called in update_aux after photosynthesis, which supplies the leaf respiration Rd, and after update_plant_area_indices!, which sets the LAI.

source
ClimaLand.Canopy.carbon_pool_fluxes — Function
carbon_pool_fluxes(
    parameters::PrognosticCarbonParameters,
    C_sugar,
    C_leaf,
    C_stem,
    C_root,
    MAT,
    Rd,
    T_canopy,
)

The carbon fluxes of the pools at a point (kg C m^-2 s^-1), as (; Rm, Rg, Ra, G, L_leaf, L_stem, L_root), for the pools (kg C m^-2), the mean annual temperature MAT (K), the leaf respiration Rd (mol CO2 m^-2 s^-1) and the canopy temperature T_canopy (K).

Maintenance respiration is that of the leaves, Rd, plus that of the sapwood and fine roots, at rates r_stem and r_root scaled by a Q10 of the canopy temperature, as soil temperature is not available to a standalone canopy (Rd has its own temperature response):

Rm = g(C_sugar/C_sugar_ref) [M_C Rd + Q10^((T_canopy - T_ref)/10) (r_stem C_sap + r_root C_root)]

with C_sap the sapwood carbon (sapwood_carbon) and g the ramp allocation_ramp, which stops respiration as the sugar pool empties. Allocation to growth draws the sugar pool toward a target c_nsc (C_leaf + C_sap + C_root):

G = C_sugar/τ_alloc g(C_sugar/(c_nsc (C_leaf + C_sap + C_root)))

of which Rg = (1 - a) G is respired. The litter is the turnover of each structural pool, L_i = C_i/τ_i, with the wood turnover time τ_stem = s τ_stem0, s being tau_stem_scale.

source
ClimaLand.Canopy.sapwood_carbon — Function
sapwood_carbon(C_stem, C_sap_half)

Living (sapwood) carbon of a stem pool C_stem, C_stem/(1 + C_stem/C_sap_half): linear in a small stem and saturating at C_sap_half in a large one, whose wood is mostly dead heartwood.

source
ClimaLand.Canopy.allocation_ramp — Function
allocation_ramp(x, n)

The smooth ramp x^n/(1 + x^n) (zero for x ≤ 0), which switches a flux on as the sugar pool rises past a reference, x being the ratio of the two.

source
ClimaLand.Canopy.leaf_allocation — Function
leaf_allocation(tree_share, parameters::PrognosticCarbonParameters)

Fraction of the allocation of the carbon pools that goes to leaves (dimensionless): those of trees and grasses weighted by the tree share tree_share.

source
ClimaLand.Canopy.stem_allocation — Function
stem_allocation(tree_share, parameters::PrognosticCarbonParameters)

Fraction of the allocation of the carbon pools that goes to wood (dimensionless): that of trees weighted by the tree share tree_share, as grasses build no wood. Fine roots take what goes neither to leaves nor to wood.

source
ClimaLand.Canopy.tau_stem_scale — Function
tau_stem_scale(MAT, T_ref, q)

Factor on the wood turnover time for a mean annual temperature MAT: q^((T_ref - MAT)/10) below T_ref and 1 above it, capped at MAX_TAU_STEM_SCALE. Cold-climate trees live longer; q ≤ 1 disables the scaling.

source
ClimaLand.Canopy.equilibrium_carbon_pools — Function
equilibrium_carbon_pools(parameters, GPP, Rd, f_T, MAT, tree_share)

Steady state of the carbon pools of PrognosticCarbonModel, as (; C_sugar, C_leaf, C_stem, C_root) (kg C m^-2), under constant forcing: GPP and leaf respiration Rd (mol CO2 m^-2 s^-1), the Q10 factor f_T = Q10^((T - T_ref)/10) of sapwood and fine-root respiration, the mean annual temperature MAT (K), and the tree share. For periodic forcing, pass the means over the period.

In steady state, each structural pool is its allocation times its turnover time, C_i = a f_i τ_i G, and the allocation to growth G is the GPP left after maintenance respiration, G = M_C (GPP - Rd) - f_T (r_stem C_sap + r_root C_root). As the sapwood C_sap saturates with C_stem = a f_stem τ_stem G, this is a quadratic in G. The sugar pool is the one whose allocation is G (equilibrium_sugar); the limitation of respiration by an empty sugar pool is neglected.

source
ClimaLand.Canopy.equilibrium_sugar — Function
equilibrium_sugar(G, target, parameters::PrognosticCarbonParameters)

Sugar pool (kg C m^-2) whose allocation to growth, C_sugar/τ_alloc g(C_sugar/target) with g the allocation_ramp, is G (kg C m^-2 s^-1), for the target pool target; zero without allocation or living biomass.

With x = C_sugar/target, this solves x g(x) = r = G τ_alloc/target by Newton's method. As x^(n+1)/(1 + x^n) is below both x and x^(n+1), the root lies above max(r, r^(1/(n+1))), where the iteration starts and converges in a few steps.

source
ClimaLand.Canopy.mask_biomass! — Method
mask_biomass!(p, prognostic_land_components)

Default method of setting LAI/RAI/SAI to zero where there cannot be canopy; does nothing.

Currently, this is only does something when a lake model is included in integrated models, as we cannot have vegetation over a lake, and the lake masks may not be consistent with the biomass model.

source
ClimaLand.Canopy.mask_biomass! — Method
mask_biomass!(
    p,
    prognostic_land_components::Union{
        Val{(:canopy, :lake, :snow, :soil, :soilco2)},
        Val{(:canopy, :lake, :snow, :soil)},},
)

Mask out areas where there is a lake by setting LAI, RAI, and SAI to zero. Called in canopy update_aux!.

Currently treats the lake mask as 1 or 0. It is TBD how to clip LAI, SAI RAI - or if it is needed - if the lake fraction is not binary.

source