Hei Andy, You have a whitespace in your mapname, wich is not valid. I am surprised that a mapset name with only numbers is allowed... The rest looks OK.
Try: r.mapcalc expression="image1=if( NDVI@220215 >= 0.25 ,1 ,0)" instead. Cheers Stefan From: grass-user [mailto:[email protected]] On Behalf Of andry rustanto Sent: 13. september 2016 21:53 To: [email protected] Subject: Re: [GRASS-user] r.mapcalc error Hi Helmut, the r.mapcalc error i found at the first time when i try to mosaic two images. Then I try r.mapcalc in another operation, for example : r.mapcalc "image 1 = if( NDVI@220215 >= 0.25 ,1 ,0)" syntax error, unexpected INTEGER, expecting '(' Parse error ERROR: parse error regards, Andry On Tuesday, September 13, 2016 9:35 PM, Helmut Kudrnovsky <[email protected]<mailto:[email protected]>> wrote: andry rustanto-2 wrote > dear all, > I got an error message when i try to mosaic images : > Mosaicing 2 images... > syntax error, unexpected INTEGER, expecting VARNAME or NAME > Parse error > ERROR: parse error > ERROR: An error occurred while running r.mapcalc > > the syntax error is also appeared when i try to execute r.mapcalc, both > using GUI and terminal. Seems the error occurred after i upgraded grass > from 7.0.3 to 7.0.4. I hope someone can help, thank you in advance > Andry what is the used r.mapcalc command? ----- best regards Helmut -- View this message in context: http://osgeo-org.1560.x6.nabble.com/r-mapcalc-error-tp5285649p5285653.html Sent from the Grass - Users mailing list archive at Nabble.com. _______________________________________________ grass-user mailing list [email protected]<mailto:[email protected]> http://lists.osgeo.org/mailman/listinfo/grass-user
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
