Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
doc
example
share/data
src
test
.gitignore
AUTHORS.txt
ChangeLog.txt
LICENSE.txt
NEWS.txt
README.md
TODO.txt
metainfo.ini
setup.py

README.md

RSML

Authors : C. Pradal and J. Diener

Institutes : INRIA / CIRAD

Status : Python package

License : Cecill-C

URL : https://github.com/RootSystemML/RSML-conversion-tools

About

The rsml python package provides:

  • import/export between .rsml files and MTG
  • plot
  • standard root system measurements
  • export to table file

Installation

The rsml package is an openalea package and thus requires openalea.deploy to be installed. To install it, go to the rsml folder and enter the following command::

python setup.py install

Use

    import rsml
    
    # load rsml
    g = rsml.rsml2mtg( filename )
    
    # plot
    plot2d(g)  # requires matplotlib
    plot3d(g)  # requires openalea.plantgl

    # save mtg into rsml
    rsml.mtg2rsml(g, filename)
    
    # export mesurements to tabular file
    from rsml import measurements
    measurements.export(g, filename[:-5]+'.csv')

Tutorial

RSML tutorial in Python