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
Next revision Both sides next revision
lesson_5 [2019/09/05 12:45]
britaldo
lesson_5 [2020/02/11 17:26]
hermann [LESSON 5: Implementing simple map algebra on Dinamica EGO]
Line 16: Line 16:
 \\ \\
 \\ \\
-Click on the Input/​output tab, grab and place on the sketch a Load Map and open the air_temperature.tif file used in the previous lesson. Next, click on the Map Algebra tab, grab and place on the sketch one Calculate Map and one Save Map functor. In the Save Map functor browse to ''​Dinamica EGO\Guidebook Dinamica_4\Models\Set_1\basics\1_load_save''​ and write the file name ''​temperature_fahrenheit.tif''​.+Click on the Input/​output tab, grab and place on the sketch a Load Map and open the air_temperature.tif file used in the previous lesson. Next, click on the Map Algebra tab, grab and place on the sketch one Calculate Map and one Save Map functor. In the Save Map functor browse to ''​Guidebook_Dinamica_5\Models\Set_1\basics\1_load_save''​ and write the file name ''​temperature_fahrenheit.tif''​.
 \\ \\
 \\ \\
-Click on the hook tool to create a hook functor with Number Map inside the Calculate Map if there isn't one already. The container will resize to accommodate the Number Map. Double click on the Number Map and enter “1” (do not write the quotation marks) as the Map Number. This is a number identifier for a map and will be represented within the equation box as i1 (input 1).+Click on the hook tool to create a hook functor with Number Map inside the Calculate Map if there isn't one already. The container will resize to accommodate the Number Map. Double click on the Number Map and enter “1” (do not write the quotation marks) as the Map Number. This is a number identifier for a map and will be represented within the equation box as ''​i1'' ​(input 1).
 \\ \\
 \\ \\
Line 36: Line 36:
 \\ \\
 \\ \\
-Open Calculate Map by double clicking on it. Note that map #1 is represented by i1. The Calculate Map enables the formulation of various algebraic and logic equations containing maps, tables and constants.+Open Calculate Map by double clicking on it. Note that map #1 is represented by ''​i1''​. The Calculate Map enables the formulation of various algebraic and logic equations containing maps, tables and constants.
 \\ \\
 Besides writing the equation, there are two parameters that must be set: The Cell Type and the Null Value. You will always find these parameters in functors that produce maps as output. The default is set to “Signed 32 Bit Integer”, but you can use “IEEE 754 32 Bit Real” to represent fractional numbers. ​ Besides writing the equation, there are two parameters that must be set: The Cell Type and the Null Value. You will always find these parameters in functors that produce maps as output. The default is set to “Signed 32 Bit Integer”, but you can use “IEEE 754 32 Bit Real” to represent fractional numbers. ​
Line 51: Line 51:
 Now, let’s write a simple equation to convert the Belo Horizonte temperature in the Celsius scale to Fahrenheit: ​ Now, let’s write a simple equation to convert the Belo Horizonte temperature in the Celsius scale to Fahrenheit: ​
 \\ \\
-    ​i1 * 1.8 + 32 or Belo Horizonte Temperature ​* 1.8 + 32+  ​i1 * 1.8 + 32 
 +\\ 
 +where ''​i1''​ represents the ''​Belo Horizonte Temperature''​ map. 
 +\\ 
 +\\ 
 +Despite the fact that the expression is presented using the alias of the functor from where the corresponding map is coming, you have to specify the map just typing the identifier i1. That identifier will be automatically replaced by the corresponding map alias. Another easy option to enter the map identifier is to click on the corresponding map name on the list above the image expression. 
 +\\
 \\ \\
 <​note>​ <​note>​