[GRASS-user] GRASS Graphical Modeller - using loops

Paulo van Breugel p.vanbreugel at gmail.com
Tue Jun 12 03:14:28 PDT 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20120612/cd45309e/attachment.html>


More information about the grass-user mailing list