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
lesson_4 [2019/07/08 14:10]
argemiro [LESSON 2: Opening and Saving maps on Dinamica EGO]
lesson_4 [2020/02/19 16:32] (current)
argemiro
Line 1: Line 1:
-{{ :logo_guidebook1.jpg?400 |}}+{{ :logo_logo.png?400 |}}
 \\ \\
-=====LESSON 2: Opening and Saving maps on Dinamica EGO=====  ​ 
 \\ \\
-==In this lesson we would like to demonstrate how load a map from a file and save a map into a file on Dinamica EGO.==+====LESSON 4: Opening ​and Saving maps====
 \\ \\
-**Which Functors will you use in this lesson?**\\ \\ +==In this lesson ​we show how to load a map and save it to a different file format.==
-• Functors:​ Load Map and Save Map\\+
 \\ \\
 +**Which functors will you use in this lesson?** [[Load Map]] and [[Save Map]]
 \\ \\
-What is your model doing? It is loading “air_temperature.tif” file and then saving this map with another extension. The new map will be saved to the new format in the selected folder. 
 \\ \\
 +**What will the model do?** It will load “air_temperature.tif” file and save this map to a different file with another extension. This new map will be saved to the new format in the selected folder. We will use initially the air_temperature raster layer ''​Guidebook_Dinamica_5\Database\Climate_bh\air_temperature.tif''​
 \\ \\
-**Here, we will use**: The air_temperature raster layer (Dinamica EGO\Guidebook Dinamica_4\Database\Climate_bh\air_temperature.tif) 
 \\ \\
 +**Let'​s go!**
 +\\
 +\\
 +There are two ways to load a raster file into Dinamica EGO. The first is through the functor [[Load Map]]. To do so, click on the Input/​Output tab from the Library window, drag a [[Load Map]] and place it on the sketch:
 +\\ 
 \\ \\
-**Let'​s go!** There are two ways to load a raster file into Dinamica EGO. The first one is through the functor “Load map”. So, click on the Input/​output tab from the library window and grab a “Load Map” and place it on the sketch: 
-\\ \\ 
 {{ :​imagem17.png?​200 |}} {{ :​imagem17.png?​200 |}}
 \\ \\
-Double click the Load Map Functor and browse to the folder Dinamica EGO\Guidebook Dinamica_4\Database\Climate_bh\ select the air_temperature.tiff file. Click OPEN and then OK and your map is loaded. 
-\\  \\ 
 \\ \\
 +Double click the [[Load Map]] functor in the model sketch, click on the file icon to browse to the folder ''​Guidebook_Dinamica_5\Database\Climate_bh\''​ and select the air_temperature.tif file. Click OPEN and then OK to choose the map that will be loaded when the model runs.
 \\ \\
-<note tip>​**TIP:​** If the file is not listed, check if the Files of type combo box at the bottom of the dialog is set on the right type. </​note>​ 
 \\ \\
 +<note tip>
 +If the file is not listed, check if the Files of Type combo box at the bottom of the dialog window is set to the right file format.
 +</​note>​
 \\ \\
 {{ :​imagem16.png?​900 |}} {{ :​imagem16.png?​900 |}}
-\\ \\ +\\  
-<​note> ​  **NOTE**\\ \\ +\\ 
-Dinamica EGO has a Map viewer ​application ​that can be opened as a stand-alone application (check the “Dinamica EGO 4 Map Viewer” icon in your desktopor from within Dinamica EGO.  +<​note>​ 
-So, double click on your Load map functor and then click on the eye button. In this way, your map is opened in Dinamica Map Viewer. Click on the Histogram button to adjust the visualization of your map. Select “Limits to actual” in the “Limits” options and then choose one of the transformations options. We suggest “Equalize”:​ \\ \\ {{ :​imagem18.png?​700 |}}+Dinamica EGO Map Viewer ​application can also be opened as a stand-alone application (check the “Dinamica EGO 4 Map Viewer” icon on your desktop or within Dinamica EGO folder)
 </​note>​ </​note>​
 \\ \\
 +To view the loaded map, double click on your [[Load Map]] functor and then click on the eye button. The map will be opened in Dinamica Map Viewer. Click on the down arrow next to the map name on the map list inside of the map viewer, then click on the Histogram icon to adjust the visualization of the map. Select “Limits to Actual” inside the “Limits” options and then choose one of the transformations options. The following image depicts a map with an “Equalize” transformation: ​
 +\\ 
 +\\
 +\\ 
 +{{ :​imagem18.png?​700 |}}
 +\\
 +\\
 +Another way to load your map into Dinamica EGO is to drag the raster from the source folder to the Sketch. Doing so, Dinamica EGO will ask which functor would you like to use, select [[Load Map]] and click "​Close"​. ​
 +\\ 
 \\ \\
-Another way to load your map into the Dinamica EGO is to drag the raster from the source folder to the Sketch. Doing so, Dinamica EGO will ask what functor you would like to use, select “Load Map” and click CLOSE: \\ \\ 
 {{ :​imagem19.png?​900 |}} {{ :​imagem19.png?​900 |}}
- 
-<note tip>​**TIP:​** To make the model more intelligible,​ you can name and add comments on the functors. For this, click on the balloon button in the functor action bar</​note>​ 
 \\ \\
 +<note tip>
 +To make the model more intelligible,​ you MUST name alias, add comments on the functors and change their colors. For this, click on the balloon button in the functor action bar.
 +</​note>​
 \\ \\
-**Now, we will learn how to save a map.** From the Input/​output tab from the library window grab a Save Map functor and place in the sketch. In this example we will save the “air_temperature” map but in another type of file. To do so click on the lightning button in the functor action bar and connect the arrow in the Save Map functor. ​ 
 \\ \\
- +**Learn how to save a map.** From the Input/​Output tab on the Library window grab a Save Map functor and place it on the sketch. In this example we will save the “air_temperature” to another file format. To do so, click on the lightning button ​in the functor action bar and connect the arrow to the Save Map functor
-<note tip>**TIP:** The connection is set automatically because there is only one option for compatible ports in the respective functors ​and container</​note>​+
 \\ \\
 \\ \\
-Open Save Map functor and observe ​that you have to determine where the file will be saved and choose the map format ​that you want. Let’s choose “.ers”. ​Select ​a path to save your map name your new file. We suggest to browse to Dinamica “EGO\Guidebook Dinamica_4\Models\Set_1\basics\1_load_save” ​and write the name file (“temp_bh.ers”):+<note tip> 
 +The connection is set automatically because there is only one option for compatible ports in the respective functors and containers. 
 +</​note>​ 
 +\\ 
 +Open the [[Save Map]] functor and click on the file icon. Note that you have to choose ​the file path and map format. Let’s choose “.ers”. ​Now, select ​a path to save your map and name your new file. We suggest to browse to ''​Guidebook_Dinamica_5\Models\load_save'' ​and write the file name “temp_bh.ers”.
 \\ \\
 \\ \\
Line 52: Line 65:
 \\ \\
 \\ \\
-Save your model (Disk button on the main tool bar) and then run it by clicking on the run button (blue arrow on the main tool bar). +Save your model (disk button on the main toolbar) and then run it by clicking on the run button (blue arrow on the main toolbar). 
 The final model will look like this:  The final model will look like this: 
 \\ \\
 \\ \\
-{{ :​imagem20.png?​400 |}}\\ \\ +{{ :​imagem20.png?​400 |}} 
- +\\ 
 +\\ 
 +Congratulations,​ you have successfully completed this lesson! 
 +\\ 
 +\\ 
 +☞[[:​lesson_5 | Next Lesson]] 
 +\\ 
 +☞[[:​guidebook_start| Back to Guidebook Start]] ​