Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ego_script [2013/07/31 00:11] 127.0.0.1 external edit |
ego_script [2015/09/14 02:31] (current) admin [Overview] |
||
---|---|---|---|
Line 35: | Line 35: | ||
Script {{ | Script {{ | ||
landscape := LoadCategoricalMap "c:/landscape.tif"; | landscape := LoadCategoricalMap "c:/landscape.tif"; | ||
- | cells hects m2s := CalcAreas landscape; | + | areas := CalcAreas landscape; |
- | SaveLookupTable hects "c:/area_in_hectares.csv"; | + | SaveTable areas "c:/areas.csv"; |
}}; | }}; | ||
</file> | </file> | ||
- | Note that functor [[Calc Areas]] produces three lookup tables, representing the calculated area in cells, hectares and square meters. | + | Note that functor [[Calc Areas]] produces a table, representing the calculated area in cells, hectares and square meters. |
It is possible to omit variables representing outputs or ignore them using the variable ''_'' (underline). So the previous example can be re-written as shown below: | It is possible to omit variables representing outputs or ignore them using the variable ''_'' (underline). So the previous example can be re-written as shown below: |