Linking Select folder-select file between nested containers?

19 views
Skip to first unread message

Ben Black

unread,
Sep 8, 2021, 9:41:41 AM9/8/21
to Dinamica EGO
Hello, 

New user here, I'm building an LULCC model to simulateously test different scenario's over multiple iterations (temporal). The transition matrixes will be manually adjusted for the different scenario's and will be introduced through a 'select transition matrix' functor. At the same time the variables that will be used for calculating probability maps will be dynamic with respect to both the scenario that is being simulated and the time steps of the simulation. 

So far my model (see attached pdf) has a 'for each' container to control the temporal iteration and another for each nested within it to iterate through the scenario's. Within the first container I want to use 'select folder' to link to sub-folders containing the values for variables for each time point and then within the next folder I need to use a functor to select the appropriate folder within this sub-folder to choose the right table of variable values according to the scenario being simulated (recognised through 'step'). However I don't see any way to link the output of the higher level 'select folder'  functor to a 'select table' functor in the nested container. 

Is this possible or is there a simple work around that I am missing? I couldn't find any comparable examples from the community. 

Many thanks,
Ben. 
LULCC_simulation.pdf

Britaldo Soares Filho

unread,
Sep 8, 2021, 1:38:27 PM9/8/21
to Dinamica EGO
Ben,

For each Number Folder you should place a Folder outside the container pointing to the scenario folder. A better way is to use Create String inside the container to specify the folder name for each scenario, for example passing a number or String to Create String. Names can be stored in tables and retrieved at each model iteration.

Best regards,





Britaldo Silveira Soares Filho
Centro de Sensoriamento Remoto/UFMG
brit...@csr.ufmg.br
www.csr.ufmg.br
wwww.csr.ufmg.br/dinamica
553134095449, 34095417


--
You received this message because you are subscribed to the Google Groups "Dinamica EGO" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dinamica-ego...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dinamica-ego/0efd0698-3e3d-4d02-86bb-62c5dd61458en%40googlegroups.com.

Ben Black

unread,
Sep 9, 2021, 4:47:14 AM9/9/21
to Dinamica EGO
Thank you Britaldo!

By the end of the day yesterday I had arrived at a similar solution to what you suggest by using select_string to create strings based on the scenario and then linking this as the input to load table which adds a suffix to the string based on the time step. For anyone considering something similar, I've attached an image of my model.  

LULCC_simulation_select_string.pdf
Reply all
Reply to author
Forward
0 new messages