[GRASS-user] r.mapcal sintax error

Margherita Di Leo diregola at gmail.com
Sat Apr 11 16:00:34 EDT 2009


Hi all,

i'm in trouble using r.mapcalc in Grass 6.5 svn

In order to replace in a raster map (basin_10m) the values 24,26 with 
28, i use the following cmd line:

r.mapcalc 'basin_10m_2=if(basin_10m==24),28'
r.mapcalc 'basin_10m_2=if(basin_10m==26),28'

the result is:

syntax error, unexpected ',', expecting $end
Parse error

which is the correct command to use?

Thank you in advance.

margherita


-- 
Ing. Margherita Di Leo
Ph.D. Student 
Methods and Technologies for Environmental Monitoring
Department of Environmental Engineering and Physics (DIFA)

University of Basilicata 
Campus Macchia Romana
85100 - Potenza 
Italy

Office: +39-0971205363
Fax: +39-0971205160
E-mail: dileomargherita AT gmail DOT com
Skype: dileomargherita
URL: http://www.difa.unibas.it/A_Manager_PP.do?azione=visualizzaHomePage&id=106







More information about the grass-user mailing list