analysis API#

Analysis procedures for Hydroroot.

Define a set of methods to ease the analysis and simulation.

openalea.hydroroot.analysis.intercept(g, dists, dl=0.0001, max_order=None)[source]#

Compute intercepts (the number of segments intercepted) at given lengths from the base given as list of float

See also

nb_roots()

Parameters:
  • g – (MTG)

  • dists – (list of Float) list of distances in m

  • dl – (float) - length in m of MTG segments (Default value = 1e-4)

  • max_order – (int) - maximum order of considering roots (Default value = None)

Returns:

  • intercepts: list of number of segments intercepted according to distances in dists

openalea.hydroroot.analysis.nb_roots(g, l, root=1, dl=0.0001, max_order=None)[source]#

Compute the number of segments intercepted at a given length from the base.

Parameters:
  • g – (MTG)

  • l – (length) - the length in m at which to count the intercepts

  • root – (int) - the root vertex from which the tree traversal start (Default value = 1)

  • dl – (float) - length in m of MTG segments (Default value = 1e-4)

  • max_order – (int) - maximum order of considering roots (Default value = None)

Returns:

  • number of segments

Download the source file ../../src/openalea/hydroroot/analysis.py.