Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
lesson_6 [2019/08/30 23:38]
argemiro
lesson_6 [2020/02/11 21:21]
hermann
Line 1: Line 1:
 {{ :​logo_logo.png?​400 |}} {{ :​logo_logo.png?​400 |}}
 \\ \\
-=====LESSON 6: Extracting the attributes and calculating basic statistics from a map on Dinamica EGO=====  ​ 
 \\ \\
-==In this lesson we would like to demonstrate some details on how Dinamica EGO extracts ​the attributes and calculates ​basic statistics from a map and as a result creates a table that contains these extracted attributes. ​==+====LESSON 6: Extracting ​the attributes and calculating ​basic statistics from a map on Dinamica EGO====  
 \\ \\
-**Which Functors will you use in this lesson?**\\ \\ +In this lesson ​we would like to demonstrate some details on how Dinamica EGO extracts the attributes ​and calculates basic statistics from a map, creating a table that contains these extracted attributes. ​
-• Functors:​ Load Map, Extract Map Attributes ​and Decorate Map Attribute Table\\+
 \\ \\
 \\ \\
-**Here, we will use**: The air_temperature raster layer (Dinamica EGO\Guidebook Dinamica_4\Database\Climate_bh\air_temperature.tif)+**Which Functors ​will you use in this lesson?** [[Load Map]], [[Extract Map Attributes]] and Decorate Map Attribute Table
 \\ \\
 +<​note>​
 +Decorate Map Attribute Table is a submodel (more about that later) and it is stored in the Dinamica Store. To install it go to the menu Tools >> Submodel Store, search for ''​Decorate'',​ select the Decorate Map Attribute Table submodel and click on the Install button at the bottom of the Submodel Store window.
 +</​note>​
 \\ \\
-**Let's go!** First, Click on the Input/​output tab, grab and place on the sketch one Load Map and open the air_temperature.tiff file. Next, click on the Map Algebra tab, grab and place on the sketch one Calculate Map Container. Additionally,​ click on the Map Algebra tab and grab and place one Extract Map Attributes and one Decorate Map attributes Table container:+**Here, we will use**: The air_temperature raster layer ''​Guidebook_Dinamica_5\Database\Climate_bh\air_temperature.tif''​
 \\ \\
 \\ \\
-{{ :​imagem28.png?​500 |}}+**Let'​s go!** 
 \\ \\
 \\ \\
-Now you can connect ​the functor ​Load Map to the Extract ​Map Attributes ​ container and the container Extract Map Attributes ​to Decorate Map attributes ​Table.+First, click on the Input/​Output tab, grab and place on the sketch one [[Load Map]] and open the air_temperature.tif file. Next, click on the Map Algebra tab, place on the sketch one [[Calculate Map]] container. Additionally,​ click on the Map Algebra tab and place one [[Extract Map Attributes]] and one Decorate Map Attributes ​Table.
 \\ \\
 \\ \\
-<note important>​**IMPORTANT:**Decorate Map Attribute Table layers are stored in a Dinamica Store.</​note>​+{{ :imagem28.png?500 |}}
 \\ \\
 \\ \\
-Mark the Create a connection from this functor ​button (at the top of the Decorate Map Attribute Table functor) ​to view the attribute table. \\+Now you can connect ​the functor ​[[Load Map]] to [[Extract Map Attributes]] and [[Extract Map Attributes]] to Decorate Map attributes Table. A Connect Ports window should pop up when making ​the last connection, connect Attributes to Attribute Lookup Table. 
 +\\ 
 +\\ 
 +Click once on the Decorate Map Attribute Table to prompt the functor toolbar, then click on the eye icon - Inspect functor. Inside the functor viewer window that will pop up, click on the eye icon - Inspect port output, this will mark the port for inspection. You can close the window, save and run the model. 
 +\\
 The final model will look like this:  The final model will look like this: 
 \\ \\
Line 31: Line 36:
 \\ \\
 \\ \\
-Save and run the model by clicking ​on the run model script button. Click on the Create a connection from this functor ​button for open the Map Attribute Table. ​The table will look like this:+Click again on the eye icon on the functor ​toolbar of Decorate ​Map Attribute Table. ​In the next window the table will be displayed.
 \\ \\
 \\ \\
Line 37: Line 42:
 \\ \\
 \\ \\
-Congratulations,​ you have successfully completed this lesson! ​Now let’s move to the **next lesson:​** ​[[lesson_7|LESSON 7Creating a new column and retrieving a data column from the specified table]]+Congratulations,​ you have successfully completed this lesson! 
 +\\ 
 +\\ 
 +[[:lesson_7 | Next Lesson]] 
 +\\ 
 +☞[[:guidebook_start| Back to Guidebook Start]]