[GRASS-user] GRASS7 r.mapcalc not working
Markus Neteler
neteler at osgeo.org
Thu Mar 13 08:47:56 PDT 2014
Hello Cèsar,
On Thu, Mar 13, 2014 at 2:09 PM, César Augusto Ramírez Franco
<caesarivs at gmail.com> wrote:
> Hello list,
>
> Is anyone having issues with r.mapcalc on grass7 r59245?
>
> I'm getting:
>
> syntax error, unexpected ',', expecting $end
> Parse error
> ERROR: parse error
>
> Everytime I try to do an "if(a,b,c)" statement like:
>
> "mapmask = if(mask1 && mask2, mask2, null())"
>
> I found another way to do it by doing:
>
> "mapmask = mask1 + mask2"
>
> But I still think r.mapcalc is misbeheaving on this revision
I tried here:
GRASS 7.0.svn (patUTM32):~ > r.mapcalc "mask1 = 1"
100%
GRASS 7.0.svn (patUTM32):~ > r.mapcalc "mask2 = 2"
100%
GRASS 7.0.svn (patUTM32):~ > r.mapcalc "mapmask = if(mask1 && mask2,
mask2, null())"
100%
GRASS 7.0.svn (patUTM32):~/software/grass70 > g.version -g
version=7.0.svn
date=2014
revision=59246M
build_date=2014-03-13
Do you use the wxGUI command line (maybe eating the & chars?) or the terminal?
And which operating system?
Markus
More information about the grass-user
mailing list