[GRASS-user] i.group with patterns as name for input

Nikos Alexandris nik at nikosalexandris.net
Wed Apr 1 07:34:10 PDT 2015


umberto.minora wrote:

..

> For example: if my maps are [prova_01, prova_02, ..., prova100], I 
> would
> like to insert them in the same group by doing something like:
>     run_command("i.group", type="raster", input="prova_*")

> Any suggestion? Ah, I am using Python for grass scripting. Thanks in 
> advance

You can use the output of "g.list" (as a list) as an input to 
"i.group"'s input.

Nikos



More information about the grass-user mailing list