In Windows, you can run TerraME by clicking in the icon on Desktop. In Mac and Linux, it is possible to run it by calling

In Windows, you can run TerraME by clicking in the icon on Desktop. In Mac and Linux, it is possible to run it by calling

Line 32:

Line 30:

You can implement models in TerraME using any text file editor of your preference, such as [[http://​notepad-plus-plus.org/​|Notepad++]],​ [[http://​www.vim.org/​|Vim]] or [[http://​www.gnu.org/​software/​emacs/​|Emacs]]. We currently suggest that you use [[http://​studio.zerobrane.com | ZeroBraneStudio]] as your programming environment to

You can implement models in TerraME using any text file editor of your preference, such as [[http://​notepad-plus-plus.org/​|Notepad++]],​ [[http://​www.vim.org/​|Vim]] or [[http://​www.gnu.org/​software/​emacs/​|Emacs]]. We currently suggest that you use [[http://​studio.zerobrane.com | ZeroBraneStudio]] as your programming environment to

-

develop models in TerraME. After downloading and installing ZeroBraneStudio (ZBS), please execute the following ​steps:

+

develop models in TerraME. It is free and open source (but it is possible to donate to the project). After downloading and installing ZeroBraneStudio (ZBS), please execute the steps in the tutorial available ​[[https://github.com/​TerraME/​terrame/​wiki/ZB|here]].

-

+

-

=== Copy configuration files ===

+

-

+

-

Copy the three configuration files below to a directory within Zero Brane Studio installation directory.

+

-

+

-

^**File** ​ ^**What it does** ​ ^ **Copy to** |

+

-

^[[https://raw.githubusercontent.com/​TerraME/​terrame/​master/ide/​zerobrane/​lua.lua ​| lua.lua]] ​ |Tells ZBS to highlight both Lua and TerraME keywords. ​ |''​ZeroBraneStudio/​spec''​ (there is already one with this name here, overwrite it) |

- If Zero Brain is running, close it and open again. In **Linux**, to execute TerraME properly, you must run '​zbstudio'​ from the command line, instead of clicking in the ZeroBrane icon. This will allow ZeroBrane to get your '​TME_PATH'​.

+

-

- Go to ''​File''​ menu, and click ''​New''​

+

-

- In the main window (which is blank), write ''​print("​hello"​)''​

+

-

- Save the file with ''​.lua''​ extension in your computer

+

-

- You will see that the names ''​print''​ and ''"​hello"''​ will become colored

* **[[http://​www.terrame.org/​packages/​doc/​base/​doc/​index.html|base]]**:​ A package with the basic modelling concepts, such as Cell, CellularSpace,​ Agent, Timer, and Model.

* **[[http://​www.terrame.org/​packages/​doc/​base/​doc/​index.html|base]]**:​ A package with the basic modelling concepts, such as Cell, CellularSpace,​ Agent, Timer, and Model.

-

* **[[http://​www.terrame.org/​packages/​doc/​terralib/​doc/​index.html|terralib]]**: A package to handle geospatial data. It has types to manage TerraView projects as well as functions to create and fill cellular layers.

+

* **[[http://​www.terrame.org/​packages/​doc/​gis/​doc/​index.html|gis]]**: A package to handle geospatial data. It has types to manage TerraView projects as well as functions to create and fill cellular layers.

Using the graphical interface, it is possible to download and install packages from TerraME'​s repository. They are are:

Using the graphical interface, it is possible to download and install packages from TerraME'​s repository. They are are:

Line 89:

Line 64:

* **[[http://​www.terrame.org/​packages/​doc/​sci/​doc/​index.html|sci]]**:​ A small package with interpolation functions.

* **[[http://​www.terrame.org/​packages/​doc/​sci/​doc/​index.html|sci]]**:​ A small package with interpolation functions.

* **[[http://​www.terrame.org/​packages/​doc/​calibration/​doc/​index.html|calibration]]**:​ Functions to run a given model several times, as well as metrics to compute goodness-of-fit and to calibrate models using genetic algorithms.

+

* **[[http://​www.terrame.org/​packages/​doc/​publish/​doc/​index.html|publish]]**:​ Create webmap tools using the input as well as output of models.

Under development packages:

Under development packages:

-

* **[[http://​www.terrame.org/​packages/​doc/​calibration/​doc/​index.html|calibration]]**:​ Functions to run a given model several times, as well as metrics to compute goodness-of-fit and to calibrate models using genetic algorithms.

* **[[http://​www.terrame.org/​packages/​doc/​gpm/​doc/​index.html|gpm]]**:​ Create geospatial data as well as neighbourhood files using connectivity networks such as roads.

* **[[http://​www.terrame.org/​packages/​doc/​gpm/​doc/​index.html|gpm]]**:​ Create geospatial data as well as neighbourhood files using connectivity networks such as roads.

-

* **[[http://​www.terrame.org/​packages/​doc/​publish/​doc/​index.html|publish]]**:​ Create webpages using the input as well as output of models.

* **rstats**: Integrate TerraME with R.

* **rstats**: Integrate TerraME with R.

Line 111:

Line 86:

* Tiago Carneiro. {{http://​www.dpi.inpe.br/​gilberto/​teses/​nested_ca.pdf|Nested-CA:​ a foundation for multiscale modeling of land use and land change}}. //PhD Thesis//, INPE, 2006.

* Tiago Carneiro. {{http://​www.dpi.inpe.br/​gilberto/​teses/​nested_ca.pdf|Nested-CA:​ a foundation for multiscale modeling of land use and land change}}. //PhD Thesis//, INPE, 2006.

-

+

===== Extensions ​=====

-

===== Additional software ​=====

+

-

+

-

=== TerraView ===

+

-

**[[http://​www.dpi.inpe.br/​terralib5|TerraView]]** is a GIS application based on TerraLib, a library to handle vector and raster data using several data sources. TerraME currently works with **TerraView 5.1.3**.

+

-

+

-

=== Extensions ​===

+

* **[[http://​luccme.ccst.inpe.br/​|LUCCME]]**,​ an extension for top-down land change modeling.

* **[[http://​luccme.ccst.inpe.br/​|LUCCME]]**,​ an extension for top-down land change modeling.