[GRASS-user] r.mapcalc error

Helmut Kudrnovsky hellik at web.de
Tue Sep 13 13:14:59 PDT 2016


Helmut Kudrnovsky wrote
>>r.mapcalc "image 1 = if( NDVI at 220215  >= 0.25 ,1 ,0)"
>> syntax error, unexpected INTEGER, expecting '('
> 
> 
> is there a whitespace between "image" and "1"?
> 
> try image1 instead of image 1.

just tried it here:

r.mapcalc expression=image 1 = elevation at PERMANENT                              
syntax error, unexpected INTEGER, expecting '('
Parse error
ERROR: parse error

white spaces are not allowed in layer names.



-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/r-mapcalc-error-tp5285649p5285665.html
Sent from the Grass - Users mailing list archive at Nabble.com.


More information about the grass-user mailing list