Connecting Models to Models

Next we will connect your growth model to the existing network of models by replacing the existing growth model. From the user interface, load the hackathon2019 integration network.

../_images/interface_load1.png

You will see the network of 4 models connected to 6 input files from before.

../_images/network_original1.png

Deleting the Old Model

By right-clicking on the existing growth model, you can delete the existing model from the canvas.

../_images/network_delete1.png

Adding Your Model

You can then add your model by clicking the blue + button next to your model in the model palette.

../_images/network_add1.png

Once the model is added to the canvas, move it to the left of the canvas.

../_images/network_no_connect1.png

Making Connections

Now we want to connect our growth model to the other models in the network. First we connect the input dot (on the left side) for our growth model to the output from the photosynthesis model.

../_images/network_input_dots1.png

To make the connection, click on one dot and then the other.

../_images/network_input1.png

Next we connect the output from our growth model to the growth rate input channel of the canopy model, by again clicking on one dot and then the other.

../_images/network_output_dots1.png ../_images/network_output1.png

Creating the YAML

Once you have finalized your model connections, you can use the interface to create your YAML file by clicking the Generate Manifest button,

../_images/network_manifest1.png

Copy this information to you clipboard and past it into a new file called growth_network.yml in the ygg_home directory.

Running the Model-to-Model Integration

You can run the integration you just created by executing:

$ yggrun growth_network.yml

from the ygg_home directory. This will output information on the screen from all of the models being run.