AdelWheat quickstart#
Create a canopy#
[14]:
from openalea.adel.astk_interface import AdelWheat
from openalea.widgets.plantgl import PlantGL
# instantiate adel for two plants arraged on a line
adel = AdelWheat(nplants=20, aspect='smart')
# generate a wheat canopy 300 degree.day after emergence
g = adel.setup_canopy(1000)
Display#
[15]:
# view the mtg content at scale 1
g.display(max_scale=1)
MTG : nb_vertices=5781, nb_scales=6
/plant1 (id=1)
/plant2 (id=305)
/plant3 (id=619)
/plant4 (id=923)
/plant5 (id=1167)
/plant6 (id=1480)
/plant7 (id=1784)
/plant8 (id=2098)
/plant9 (id=2402)
/plant10 (id=2715)
/plant11 (id=2969)
/plant12 (id=3234)
/plant13 (id=3538)
/plant14 (id=3803)
/plant15 (id=4107)
/plant16 (id=4380)
/plant17 (id=4624)
/plant18 (id=4958)
/plant19 (id=5223)
/plant20 (id=5477)
[16]:
# display the 3D generated scene
PlantGL(adel.plot(g), side='double')
[16]: