[GRASS-user] Adding options to grass.run_command
Glynn Clements
glynn at gclements.plus.com
Fri Sep 3 13:55:48 EDT 2010
Martin Landa wrote:
> > but this doesn't:
> > -----
> > grass.run_command("r.in.xyz", --overwrite, input=directory+'/'+file,
> > output=rainraster, fs=',', x=2, y=1)
> > neither does this:
> > -----
> > grass.run_command("r.in.xyz --overwrite", input=directory+'/'+file,
> > output=rainraster, fs=',', x=2, y=1)
>
> should be `overwrite = True` instead `--overwrite`
Likewise for "quiet" and "verbose".
Any normal (single-dash) flags must specified via "flags=...", e.g.:
r.something -a -b -c ...
becomes:
grass.run_command("r.something", flags="abc", ...)
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list