[GRASS-user] scripting mapcalc
Dylan Beaudette
dylan.beaudette at gmail.com
Thu Mar 5 10:45:44 EST 2009
On Thu, Mar 5, 2009 at 7:39 AM, achim <ak7 at jupiter.uni-freiburg.de> wrote:
>
> The Problem isn't solved yet!!
>
> I posted an easy example, but calculating with more complicated
> scenarios I got these:
>
> r.mapcalc river=if(river[0,1]=4032076 ,4032075,river)
> syntax error, unexpected '=', expecting ')'
> Parse error
>
> or
>
> r.mapcalc river=if( river=4032076 ||| river=4032076 ,4032075,river)
> syntax error, unexpected '=', expecting '@' or '('
> Parse error
>
> Any ideas?
>
Time to visit the manual page. g.manual r.mapcalc will get you there.
= is for assignment, == is for testing.
Dylan
More information about the grass-user
mailing list