[GRASS-user] GRASS Graphical Modeller - using loops

Hi,

I am experimenting with the GRASS graphical modeller in GRASS 7.0 (on Ubuntu 12.04). I would like to create a mask in a loop, whereby the input ‘maskcats’ is dynamic. I.e., I would like to do something similar to the script below:

for i in { 1 … 5 }
do
r.mask input=inputmap maskcats=$i
other commands…
done

From the tutorials, I can see how to create dynamic loops with raster or vector layers as input, but I cannot find how to do this with integer values as input.

Cheers,

Paulo

Hi Paulo,

perhaps you can find some hints here:

http://grass.osgeo.org/wiki/WxGUI_Modeler

(note: it is a Wiki page, please feel (all) free to add more
instructions to that page).

Best
Markus