[GRASS-user] Adding options to grass.run_command
Hanlie Pretorius
hanlie.pretorius at gmail.com
Fri Sep 3 12:06:59 EDT 2010
Thanks :-)
2010/9/3, Martin Landa <landa.martin at gmail.com>:
> 2010/9/3 Hanlie Pretorius <hanlie.pretorius at gmail.com>:
>> grass.run_command("r.in.xyz", input=directory+'/'+file,
>> output=rainraster, fs=',', x=2, y=1)
>
> better `input = os.path.join(directory, file)`
>
>> 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`
>
> Martin
>
> --
> Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
>
More information about the grass-user
mailing list