[GRASS-user] r.mapcalc error

Blumentrath, Stefan Stefan.Blumentrath at nina.no
Tue Sep 13 13:10:22 PDT 2016


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 at 220215  >= 0.25 ,1 ,0)"
instead.

Cheers
Stefan

From: grass-user [mailto:grass-user-bounces at lists.osgeo.org] On Behalf Of andry rustanto
Sent: 13. september 2016 21:53
To: grass-user at lists.osgeo.org
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 at 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 <hellik at web.de<mailto:hellik at web.de>> 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
grass-user at lists.osgeo.org<mailto:grass-user at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160913/44094d64/attachment-0001.html>


More information about the grass-user mailing list