[GRASS-dev] 3 raster/parser bugs

Hi,

using GRASS :slight_smile: I found a series of small parser issues:

# in and out name are identical and r.buffer happily overwrites:
r.buffer channel2_thin out=channel2_thin dist=200 --o
Reading input map (channel2_thin) ...
100%
Finding buffer zones ...
100%
Writing output map (channel2_thin) ...
100%

# while the WARNING isn't really helpful, it should just pick
# morph (which *is* in neteler, my current mapset) and go ahead:
r.mapcalc 'corridor=if(morph == 3 || morph == 5,1,null())'
WARNING: 'cell/morph' was found in more mapsets (also found in neteler).
WARNING: 'cell/morph' was found in more mapsets (also found in neteler).
ERROR: 'cell/morph' was found in more mapsets (also found in neteler).

# --o doesn't have an effect:
r.surf.fractal out=landscape1 --o
Steps=1
ERROR: Raster map [landscape1] exists.
       Please try another

I could not find where these problems originate from.

Markus

Hi Markus,

2006/11/17, Markus Neteler <neteler@itc.it>:

[snip]

just trying to fix local problem in r.surf.fractal, see the attached patch.

# --o doesn't have an effect:
r.surf.fractal out=landscape1 --o
Steps=1
ERROR: Raster map [landscape1] exists.
       Please try another

I could not find where these problems originate from.

Best regards, Martin

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

(attachments)

r_surf_fractal.diff.gz (1.64 KB)

Hi,

isn't it same as
http://intevation.de/rt/webrt?serial_num=5111&display=History ?

Maris.

On Friday 17 November 2006 19:11, Markus Neteler wrote:

# while the WARNING isn't really helpful, it should just pick
# morph (which *is* in neteler, my current mapset) and go ahead:
r.mapcalc 'corridor=if(morph == 3 || morph == 5,1,null())'
WARNING: 'cell/morph' was found in more mapsets (also found in neteler).
WARNING: 'cell/morph' was found in more mapsets (also found in neteler).
ERROR: 'cell/morph' was found in more mapsets (also found in neteler).

Markus

Hi Martin,

great. I thought that I grep'ed for 'Please try another' but apparently
in a different
directory :slight_smile:
Looks good to me, please submit.

thanks
Markus

Martin Landa wrote on 11/17/2006 06:33 PM:

Hi Markus,

2006/11/17, Markus Neteler <neteler@itc.it>:

[snip]

just trying to fix local problem in r.surf.fractal, see the attached
patch.

# --o doesn't have an effect:
r.surf.fractal out=landscape1 --o
Steps=1
ERROR: Raster map [landscape1] exists.
       Please try another

I could not find where these problems originate from.

Best regards, Martin

Hi,

2006/11/17, Markus Neteler <neteler@itc.it>:

Hi Martin,

great. I thought that I grep'ed for 'Please try another' but apparently
in a different
directory :slight_smile:
Looks good to me, please submit.

ok,

Martin

thanks
Markus

Martin Landa wrote on 11/17/2006 06:33 PM:
> Hi Markus,
>
> 2006/11/17, Markus Neteler <neteler@itc.it>:
>
> [snip]
>
> just trying to fix local problem in r.surf.fractal, see the attached
> patch.
>
>> # --o doesn't have an effect:
>> r.surf.fractal out=landscape1 --o
>> Steps=1
>> ERROR: Raster map [landscape1] exists.
>> Please try another
>>
>> I could not find where these problems originate from.
>
> Best regards, Martin

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *