Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
working_with_tables [2013/08/21 03:46] admin created |
working_with_tables [2013/08/21 04:07] (current) |
||
---|---|---|---|
Line 9: | Line 9: | ||
To highlight the benefits of using Tables, let's start changing one of the tutorial lessons to use table to calculate areas more effectively. The [[tutorial:incorporating_iterations_into_a_model|original lesson]] uses a loop to calculate the forest area for each one of the Amazon states. But what if we want to calculate the are of all land-use classes for each state? | To highlight the benefits of using Tables, let's start changing one of the tutorial lessons to use table to calculate areas more effectively. The [[tutorial:incorporating_iterations_into_a_model|original lesson]] uses a loop to calculate the forest area for each one of the Amazon states. But what if we want to calculate the are of all land-use classes for each state? | ||
- | Using Lookup Tables we were forced to use several Muxes to keep track of the area of each land-use class individually. This does not scale very well because the additional of new classes to the input map requires changes in model itself. Tables provide a better solution to this problem. | + | Using Lookup Tables we were forced to use several Muxes to keep track of the area of each land-use class individually. This does not scale very well because the addition of new classes to the input map requires changes to the model itself. Tables provide a better solution to this problem. |
<note>I suggest the customization of the functor "alias" used by the functor in the model. They make the model easier to read and interpret.</note> | <note>I suggest the customization of the functor "alias" used by the functor in the model. They make the model easier to read and interpret.</note> | ||