TerraME: Simulation and Modelling of Terrestrial Systems
TerraME is a programming environment for spatial dynamical modelling. It supports cellular automata, agent-based models, and network models running in 2D cell spaces. TerraME provides an interface to TerraLib geographical database, allowing models direct access to geospatial data. Its modelling language has in-built functions that makes it easier to develop multi-scale and multi-paradigm models for environmental applications.
Two important innovations in TerraME are its use of anisotropic spaces and of hybrid automata models. Anisotropic spaces arise when modeling natural and human-related phenomena. For example, land settlers in a new area do not occupy all places at the same time. They follow roads and rivers, leading to an anisotropic pattern. Anisotropic spaces are implemented in TerraME using Generalized Proximity Matrices (GPM). The GPM is an extension of the usual definition of the spatial relations and include a combination of neighborhood measures in the absolute space and in the relative space.
A hybrid automaton is an abstract model for a system whose behavior has discrete and continuous parts. It extends the idea of finite automata to allow continuous change to take place between transitions. Adopting hybrid automata in spatial dynamical models allows complex models which include critical transitions.
A vision of research motivations and directions of Environmental Modelling in INPE is available in this presentation. An early presentation of our vision is How can GIScience contribute to Land Change Modelling?, the keynote speech at GIScience 2006. The rationale for the TerraME software is presented in the lecture Modelling human-environment interactions, presented in the Vespucci Summer School 2010.
The latest version of TerraME is 1.3.0. It works under Windows (XP, Vista, and Windows 7), Mac and Linux (tested on Ubuntu 12.04).
- Online documentation.
- Memory leaks removed.
- Observer Neighborhood improved.
- HTML (~100 KB)
- Examples can be found here.
- We use TerraME on our courses on Enviromental Modelling. We give regular graduate courses in the research programs in Earth System Science at INPE and Computer Science at UFOP.
Papers and reports
- Carneiro, T. G. S. ; Andrade, P. R. ; Câmara, G. ; Monteiro, A. M. V. ; Pereira, R. R. . An extensible toolbox for modeling nature-society interactions. Environmental Modelling & Software, 2013 (in press). DOI:10.1016/j.envsoft.2013.03.002.
- Silva, S. H. C. ; Carneiro, T. G. S. ; Lima, J.. TerraME HPA: Parallel Simulation of Multi-Agent Systems over SMP. ACM SIGSIM Conference on Principles of Advanced Discrete Simulation, 2013, Montreal.
- Rodrigues, A. J. C., Carneiro, T. G. S., Andrade, P. R.. TerraME Observer: An extensible real-time visualization pipeline for dynamic spatial models. XVIII Brazilian Symposium on Geoinformatics, Campos do Jordão, 2012.
- Evaldinólia Moreira, Sergio Costa, Ana Paula Aguiar, Gilberto Camara, Tiago Carneiro. Dynamical coupling of multiscale land change models,Landscape Ecology, 24(9), p. 1183-1194, 2009.
- Pedro Andrade, Antonio Miguel Monteiro, Gilberto Câmara, Sandra Sandri. Games on Cellular Spaces: How Mobility Affects Equilibrium.Journal of Artificial Societies and Social Simulation (JASSS), 12(1), p. 4, 2009.
- Tiago Carneiro, Gilberto Câmara, Raian Maretto. Irregular Cellular Spaces: Supporting Realistic Spatial Dynamic Modeling using Geographical Databases. X Brazilian Symposium on Geoinformatics, GeoInfo'08, Rio de Janeiro, 2008.
- Tiago Carneiro. Nested-CA: a foundation for multiscale modeling of land use and land change. PhD Thesis, INPE, 2006.
- Crimson Editor: Recommended for most users.
- Sublime: Recommended for Mac users.
- Instructions for running TerraME within Sublime under Mac OS.
- Under Windows:
- Download the compressed configuration files and uncompress them.
- Supposing that TerraME is installed in the folder “c:\TerraME” change the second line of “TerraME.sublime-build” file to: “cmd”: [“c:\\TerraME\\bin\\TerraME”, “$file”]
- Copy file “Lua.tmLanguage” to the folder “C:\Users\?USER_NAME?\AppData\Roaming\Sublime Text 2\Packages\Lua”
- Copy file “TerraME.sublime-build” to the folder “C:\Users\?USER_NAME?\AppData\Roaming\Sublime Text 2\Packages\User”
- Eclipse SDK: Recommended for large projects. TerraME has an Eclipse plugin to visually develop models, called TerraME-GIMS: Graphical Interface for Modeling and Simulation.
TerraView is a GIS application based on TerraLib, a library to handle vector and raster data in several geographical DBMS. TerraME currently works with TerraView 4.2.0. Some useful plugins to work with dynamic models that come within TerraView are:
- Fill Cell Plugin: Feeds cellular spaces with attributes based on any geometry, through a large set of operations.
- Copytheme2layer: A simple and useful plugin to interchange cellular spaces from different databases.
The DataBase Management Systems (DBMS) currently supported by TerraME are:
- Microsoft Access: Recommended for small projects. It usually comes installed on Windows.
- MySQL: Recommended for large projects.
aRT (R-TerraLib API) is an R package that provides the integration between the statistical software R and the GIS library TerraLib. The aim is to have a package for accessing geospatial data to be analysed in R.
- LuccME, an extension for top-down land change modeling.
The chief developer of TerraME is Prof. Tiago Garcia de Senna Carneiro, from the Federal University of Ouro Preto (UFOP). INPE's development group includes Dr. Pedro Andrade, and MsC. Raian Vargas Maretto. INPE's researchers involved in developing models using TerraME include Dr. Gilberto Camara, Dr. Antonio Miguel Monteiro, Dr. Ana Paula Aguiar, Dr. Giovana Mira de Espindola, and PhD candidates Sergio Costa and Rodolfo Maduro Almeida. The TerraME kernel development team includes some research assistants from UFOP - Msc. Rodrigo Reis Pereira and Msc. Tiago Franca de Melo Lima, and also includes some undergraduate and master students from UFOP Computer Science Department: Antônio José da Cunha Rodrigues, Saulo Henrique Cabral Silva, Henrique Cota Camello, Washington Sena de França , Rafael Lage Moreira Barbosa , and Breno de Almeida Pereira. TerraME model calibration tools are being developed in association with researches and master students from the Eletrical Engineering Department from Federal University of Minas Gerais: Dr. Frederico Gadelha Guimarãesand Rodolfo Ayala Lopes Costa.
The TerraME modelling language is an extension of the Lua programming language and interfaces to http://www.terralib.org GIS library for archival and retrieval of geospatial data. Many thanks to the Lua and TerraLib teams for providing such good environments to build upon!
TerraME has been developed as a joint effort among TerraLab (Laboratory for Modelling and Simulation of Earth Systems), at Federal University of Ouro Preto, with Earth System Science Center (CCST) and Image Processing Division (DPI), at INPE.