Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lesson_6 [2019/07/09 19:53] argemiro |
lesson_6 [2020/02/19 16:37] (current) argemiro |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====LESSON 7: Extracting the attributes and calculating basic statistics from a map on Dinamica EGO===== | + | {{ :logo_logo.png?400 |}} |
\\ | \\ | ||
- | ==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. == | ||
\\ | \\ | ||
- | **Which Functors will you use in this lesson?**\\ \\ | + | ====LESSON 6: Extracting the attributes and calculating basic statistics from a map==== |
- | • Functors: Load Map, Extract Map Attributes and Decorate Map Attribute Table\\ | + | |
\\ | \\ | ||
+ | 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. | ||
\\ | \\ | ||
- | **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 | ||
\\ | \\ | ||
- | **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: | + | <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> | ||
\\ | \\ | ||
+ | **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 |}} | ||
+ | \\ | ||
+ | \\ | ||
+ | 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. | ||
\\ | \\ | ||
- | Mark the Create a connection from this functor button (at the top of the Decorate Map Attribute Table functor) to view the attribute table. \\ | ||
The final model will look like this: | The final model will look like this: | ||
\\ | \\ | ||
Line 29: | 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. |
\\ | \\ | ||
\\ | \\ | ||
{{ :imagem31.png?500 |}} | {{ :imagem31.png?500 |}} | ||
+ | \\ | ||
+ | \\ | ||
+ | Congratulations, you have successfully completed this lesson! | ||
+ | \\ | ||
+ | \\ | ||
+ | ☞[[:lesson_7 | Next Lesson]] | ||
+ | \\ | ||
+ | ☞[[:guidebook_start| Back to Guidebook Start]] |