Terraflux Terraflux
Download

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... Beginner45 min 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... Beginner40 min 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... Beginner40 min 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... Intermediate45 min 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... Intermediate35 min 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... Intermediate35 min 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... Intermediate35 min 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... Advanced45 min 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... Beginner30 min 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,... Beginner20 min