colzette API#
Colzette library
- class openalea.colzette.colzette.Plant(name='', above=None, below=None)[source]#
Bases:
objectDefine a plant as an above and below ground MTG.
Some usefull functions can be defined as proxies.
- openalea.colzette.colzette.bell_shaped_dist(total_area=1, nb_phy=15, rmax=0.7, skewness=5)[source]#
OLD, use generate_normalized_bell_curve_points() instead returns the leaf area of individual leaves along a bell shaped model, as a proportion of the total leaf area
- openalea.colzette.colzette.get_params_intercrop(species_brassica, species_legume, param_file_brassica, param_file_legume, option_parameters)[source]#
- openalea.colzette.colzette.setting_PGLViewer(width=1200, height=1200, x_center=0.0, y_center=0.0, z_center=0.0, x_cam=0.0, y_cam=0.0, z_cam=-0.2, grid=True, background_color=[255, 255, 255])[source]#
This function sets the center of the graph and the relative position of the camera for displaying a scene in PGL. :param width: width of the window (pixels) :param height: height of the window (pixels) :param x_center: x-coordinate of the center at which the camera looks :param y_center: y-coordinate of the center at which the camera looks :param z_center: z-coordinate of the center at which the camera looks :param x_cam: x-coordinate of the camera position :param y_cam: y-coordinate of the camera position :param z_cam: z-coordinate of the camera position :param grid: if True, all grids will be displayed :param background_color: a RGB vector corresponding to the background color of the graph :return:
- openalea.colzette.colzette.update_MTG(g, outputs)[source]#
Update the MTG :param dict outputs: {‘param1’: { vid1: , vid2, …}, ‘param2’: { vid1: , vid2, …}}
Download the source file ../../src/openalea/colzette/colzette.py.