[GRASS-user] Error in r.basin

Markus Metz markus.metz.giswork at googlemail.com
Tue Aug 2 02:58:44 EDT 2011


On Mon, Aug 1, 2011 at 10:41 PM, Martin Landa <landa.martin at gmail.com> wrote:
> Hi,
>
> 2011/8/1 Rosca Bogdan <roscao at gmail.com>:
>>     grass.run_command('r.stream.extract', elevation =
>> r_elevation, accumulation = r_accumulation, threshold = th,
>> d8cut = 'infinity', mexp = 0, stream_rast = r_stream_e,
>> stream_vect = v_stream_e, direction = r_drainage_e, flags
>> ='-o')
>
> replace `flags = '-o'` with `overwrite = True`

There are probably more problems further down with e.g. flags = '-v'
in lines 249 and 254. Also, some of the printed messages should use
grass.message() to avoid spoiling the output written to stdout.

Markus M


More information about the grass-user mailing list