GeraultTr / Root_CyNAPS

0 stars 0 forks source link

Investigating xarray for mtg's properties computation and readability #15

Open GeraultTr opened 1 year ago

GeraultTr commented 1 year ago

Investigating xarray for mtg's properties computation and readability.

pradal commented 1 year ago

Thanks!

GeraultTr commented 1 year ago

So as far as I understood, solving this issue would mean to fork open openalea.mtg to modify :

I am right on these? Thanks again!

GeraultTr commented 1 year ago

In the simulation_no_C.py file, I started logging and exporting properties using x_array. To me the next step is to understand better the current management of the MTG file :

  1. Why is it that you import the xxx.pckl MTG file with pickme and end up with a class and not a dict object?
  2. How to achieve this while importing a xxx.nc file that is the format used for xarray?
  3. Doing this will compromise the methods of openalea.mtg that will not work with a xarray object. Does it mean recoding everything in these methods?
  4. With this strategy, where is the MTG's topological scheme stored, as I've been talking only about properties in the 3 previous points?

Sorry for the long list but I think I need to figure these out to go further on this issue.