Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorial:multiple_criteria_evaluation_in_dinamica_ego [2016/11/29 13:46] isabella |
tutorial:multiple_criteria_evaluation_in_dinamica_ego [2017/01/25 18:55] francisco [Third step: Calculating driving time to neighboring towns] |
||
---|---|---|---|
Line 80: | Line 80: | ||
**Source** is a map containing the features to which distances will be calculated. A feature is represented by a non-null value. **Mask** is a map used to mask the distance calculation on its null cells. Let’s connect the output from //[[:Calculate Categorical Map]]// to **Source** and Categorical Map ''landuse.tif'' to **Mask**. Now open the //[[:Calculate Categorical Map]]// and write the following equation:\\ | **Source** is a map containing the features to which distances will be calculated. A feature is represented by a non-null value. **Mask** is a map used to mask the distance calculation on its null cells. Let’s connect the output from //[[:Calculate Categorical Map]]// to **Source** and Categorical Map ''landuse.tif'' to **Mask**. Now open the //[[:Calculate Categorical Map]]// and write the following equation:\\ | ||
- | **if i1 = 5 then1 else null** | + | **if i1 = 5 then 1 else null** |
Remember that 5 is the number identifier for urban. You do not need to change either **Cell type** or **Null Value** in both functors, although to save memory you could set "Signed 8 Bit Integer" and **Null Value** to "0" in //[[:Calculate Categorical Map]]//. You may also turn on the option **Truncate Distance** in Calc Distance to Feature Map. This will avoid exceeding the maximum numerical representation selected for **Cell type**. | Remember that 5 is the number identifier for urban. You do not need to change either **Cell type** or **Null Value** in both functors, although to save memory you could set "Signed 8 Bit Integer" and **Null Value** to "0" in //[[:Calculate Categorical Map]]//. You may also turn on the option **Truncate Distance** in Calc Distance to Feature Map. This will avoid exceeding the maximum numerical representation selected for **Cell type**. | ||
Line 164: | Line 164: | ||
<note important>Important: Do not forget to change **Cell Type** both in //[[:Calculate Map]]// that generates the friction map and also in //[[:Calc Cost Map]]// to "IEEE 754 Bit Real". Remember that the cell cost is expressed in fractional number.</note> | <note important>Important: Do not forget to change **Cell Type** both in //[[:Calculate Map]]// that generates the friction map and also in //[[:Calc Cost Map]]// to "IEEE 754 Bit Real". Remember that the cell cost is expressed in fractional number.</note> | ||
- | Now pass the output of the //[[:Calc Cost Map]]// to another //[[:Calculate Map]]// to produce a Boolean map according to the maximum time of traveling, as follows: | + | After connecting the output of the last //[[:Calculate Map]]// to the //[[:Calc Cost Map]]// functor (to its **Source** port), pass the output of the //[[:Calc Cost Map]]// to another //[[:Calculate Map]]// to produce a Boolean map according to the maximum time of traveling, as follows: |
**if i1 < 30 then 1 else null** | **if i1 < 30 then 1 else null** | ||
Line 171: | Line 171: | ||
{{ :tutorial:mce12.jpg |}} | {{ :tutorial:mce12.jpg |}} | ||
- | Check model, integrity, save it as ''my_MCE_part1&2&3.egoml'', and run it. Examine map ''near_town_region.tif''. Is this what you got? | + | Save the model as ''my_MCE_part1&2&3.egoml'', and run it. Examine map ''near_town_region.tif''. Is this what you got? |
{{ :tutorial:mce13.jpg |}} | {{ :tutorial:mce13.jpg |}} | ||
Line 193: | Line 193: | ||
Firstly, you can delete the //[[:Save Map]]// functors, since you have already checked their results. Second, you can add comments to some functors highlighting their outcomes. Let’s do it! | Firstly, you can delete the //[[:Save Map]]// functors, since you have already checked their results. Second, you can add comments to some functors highlighting their outcomes. Let’s do it! | ||
- | Grab the Add Comment to Functor tool from the sketch toolbar. Describe the outcome in each functor preceding the //[[:Save Map]]// functors, so you can trace each data flow back to its initial node (that is Map ''landuse.tif''). In order to be able to see the comment you need to close the container //[[:Calculate Map]]// first. Do it by clicking on its top left icon. | + | Grab the Add Comment to Functor tool from the sketch toolbar. Describe the outcome in each functor preceding the //[[:Save Map]]// functors, so you can trace each data flow back to its initial node (that is Map ''landuse.tif''). Do it by clicking on its top left icon. |
Write in respective functors: Near town regions, Malaria free zone, Away from towns, Unconstrained land uses, Not too far from main roads. | Write in respective functors: Near town regions, Malaria free zone, Away from towns, Unconstrained land uses, Not too far from main roads. | ||
Line 241: | Line 241: | ||
==== Fifth step: identifying suitable areas ==== | ==== Fifth step: identifying suitable areas ==== | ||
- | In this step, you will identify the suitable areas equal to or greater than 1000 hectares. First, delete //[[:Load Map]]// ''five_criteria_combined.tif''. Remember that the less the software accesses the disk, the faster the model runs. Now, drag from Map Algebra tab the functor [[:Calc Patch Label Map]]. This functor labels patches of cells using sequential numbers. A patch consists of a continuous group of neighboring cells of the same category (see also [[landscape_metrics_in_dinamica_ego|Landscape metrics in Dinamica EGO]]). You need this in order to solve the area criterion. Connect the output from "Combine Five Criteria" to it. Some of its parameters are: | + | In this step, you will identify the suitable areas equal to or greater than 1000 hectares. First, delete //[[:Save Map]]// ''five_criteria_combined.tif''. Remember that the less the software accesses the disk, the faster the model runs. Now, drag from Map Algebra tab the functor [[:Calc Patch Label Map]]. This functor labels patches of cells using sequential numbers. A patch consists of a continuous group of neighboring cells of the same category (see also [[landscape_metrics_in_dinamica_ego|Landscape metrics in Dinamica EGO]]). You need this in order to solve the area criterion. Connect the output from "Combine Five Criteria" to it. Some of its parameters are: |
**Initial Patch Label**: Set it to "1". | **Initial Patch Label**: Set it to "1". | ||
Line 248: | Line 248: | ||
This will be sufficient to store all patch label number identifiers. Leave the other parameters untouched. Go to help for further details. Now connect its output to [[:Calc Areas]], available in the Map Algebra tab. As output this functor provides one table with three columns. See [[:Calc Areas#notes]] for additional information about the [[:Calc Areas]] result. | This will be sufficient to store all patch label number identifiers. Leave the other parameters untouched. Go to help for further details. Now connect its output to [[:Calc Areas]], available in the Map Algebra tab. As output this functor provides one table with three columns. See [[:Calc Areas#notes]] for additional information about the [[:Calc Areas]] result. | ||
- | |||
- | {{ :tutorial:mce20.jpg |}} | ||
Now, place on the sketch one //[[:Calculate Map]]// and one //[[:Number Map]]// and one //[[:Number Table]]// within it. Connect //[[:Calc Areas]]// to Table 1 (this implies that output of //[[:Calc Areas]]// is a lookup table), and **Map** output from //[[:Calc Patch Label Map]]// to Map #1. Now open //[[:Calculate Map]]// and write: | Now, place on the sketch one //[[:Calculate Map]]// and one //[[:Number Map]]// and one //[[:Number Table]]// within it. Connect //[[:Calc Areas]]// to Table 1 (this implies that output of //[[:Calc Areas]]// is a lookup table), and **Map** output from //[[:Calc Patch Label Map]]// to Map #1. Now open //[[:Calculate Map]]// and write: |