Building models
Map algebra, stacks, loops, groups, submodels and plugins: the pieces every model is made of.
Map algebra from scratch
Compute new maps cell by cell with raster.calc, and build a habitat suitability index, two kinds of buffer and a forest edge mask from a land use...
The raster calculator: scripts, a console and nodes of your own
Write map algebra as a short script close to Python in the Calculator pane, with its layers completed, its outputs previewed as you type and a...
Stacks and layers
Keep many maps of one grid together as a stack of named layers, build your own with stack.of, replace a layer with stack.set, take one out with...
Loops: write your own cellular automaton
Run part of a model again and again with control.repeat, pass a map from step to step with carry, keep every step with collect, and write a...
Groups and submodels
Gather a few nodes into one with control.group, and use a whole model file as one node with control.submodel, to find the core forest of Sibuyan...
Randomness and reproducibility
Where chance enters a model (neutral landscapes, simulations, sampling, Monte Carlo), what a seed is, why the same seed gives the same bits, how...
Checks, tests and reproducible runs
Make a model check itself as it runs with check.assert, keep what it should give as tests that terraflux test runs, record each run in a manifest...
Plugins in WebAssembly
Write your own cell-by-cell operator in any language that compiles to WebAssembly, run it with plugin.wasm in a sandbox, and grow a forest stand...
Plots and figures
See any result in the Viewer, keep maps on it as layers, compare two maps, save what the Viewer shows as a Plot of the model, find the Plots in...
The model's document: a model read as its methods
Read a model as the methods section of a paper in the Document pane, a sentence for each step with its settings and where its inputs come from,...