The models described in this course will be developed using TerraME. TerraME is an extension of the Lua language. Please read the following introduction about TerraME, to get a sense of the language and what we are going to teach:
The next step is to learn the basics of Lua, which is a simple and elegant programming language. We provide an introduction about Lua for TerraME users:
The TerraME software is available at the TerraME github release site.
We suggest that you use ZeroBraneStudio as your programming environment for developing TerraME programs. In Windows, please install the program to
C:\ZeroBraneStudio. In MAC and Linux, please use the default installation path.
After you download ZeroBraneStudio (ZBS), please do the following steps:
Copy three configuration files below to a directory within Zero Brane Studio installation directory.
|File||What it does||Copy to|
|lua.lua||Tells ZBS to highlight both Lua and TerraME keywords.||
|terrame.lua||Tells ZBS how to use TerraME.||
|user.lua||Tells ZBS where to find the TerraME interpreter.||
The default installation directories for Zero Brane are:
Filemenu, and click
.luaextension in your computer
“hello”will become colored
Lua Interpreter, select
Execute the current project/file)
Outputbox in the bottom of Zero Brane:
Program 'terrame' started in [...] hello Program completed in [...] seconds [...]
For this course, we are going to use additional packages:
To install these packages, run TerraME, click on the button “Install Package” and select the files one by one.