fetch3.sapflux.calc_sapflux#

calc_sapflux(canopy_ds, cfg: ConfigParams)#

Calculates sapflux and total aboveground water storage of the tree.

Parameters:
  • H (xarray.DataArray) – Water potential [MPa]

  • trans_2d_tree (xarray.DataArray) – transpiration [m3 s-1 m-1stem]

  • cfg (dataclass) – Model configuration parameters

Returns:

ds_sapflux

Dataset containing:
  • sapflux: Tree-level sap flux [m3 s-1]

  • storage: Total aboveground water storage [m3]

  • delta_s: Change in aboveground water storage from the previous timestep [m3]

Return type:

xarray.Dataset