[GRASS-user] Re: r.mapcalc: Syntax Error?
Hermann Peifer
peifer at gmx.eu
Thu Apr 5 01:55:01 EDT 2012
On 05/04/2012 01:14, Rich Shepard wrote:
> GRASS reports a syntax error running r.mapcalc that I do not see:
>
> GRASS 6.5.svn (Washington-Kinross):~/grassdata > r.mapcalc "weight =
> if(tan_curv_5.lm < 0, -100 * tan_curv_5.lm, \
> if(tan_curv_7.lm < 0, -100 * tan_curv_7.lm, \
> if(tan_curv_11.lm < 0, -100 * tan_curv_11.lm, 0.000001)))"
> syntax error, unexpected ';'
> Parse error
> [Raster MASK present]
>
> Since there is no semi-colon in the command, what is grass trying to tell
> me?
>
Perhaps that a '\' is missing after the equal sign? Hermann
More information about the grass-user
mailing list