[GRASS-user] r.mapcalculator

ALT SHN i.geografica at alt-shn.org
Sun Oct 24 13:29:10 EDT 2010


Hello users,

I really could use some hints regarding this problem.

I want to generate a new raster from the following expression (using
r.mapcalculator from QGIS GRASS plugin):

A*0.5+B*0.05+C*0.2+D*0.2+E*0.05

All rasters are integer16 geotiff anda have the same resolution. I just get
this message:

r.mapcalculator amap=A at PERMANENT bmap=B at PERMANENT
cmap=C at PERMANENTdmap=D at PERMANENTemap=E at PERMANENT=
formula=A*0.5+B*0.05+C*0.2+D*0.2+E*0.05 outfile=Erosao

r.mapcalc "Erosao" = "( " "A at PERMANENT" @PERMANENT" *0.5+ " "B at PERMANENT"
@PERMANENT" *0.05+ " "C at PERMANENT" @PERMANENT" *0.2+ " "D at PERMANENT"
@PERMANENT" *0.2+ " "E at PERMANENT" @PERMANENT" *0.05)"

Illegal filename. Character not allowed.

Invalid map

Parse error

Calculating Erosao. Try expert mode.

Finished with error


I suspect something very basic is missing but I don´t know what could it
be!!


Andre

-- 
---------------------------------------------------------------
Associação Leonel Trindade
SOCIEDADE DE HISTÓRIA NATURAL

Apartado 25 2564-909 Torres Vedras Portugal
Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560 Torres Vedras

Laboratório de Paleontologia e Paleoecologia: Polígono Industrial do Alto do
Ameal 2565-641 Ramalhal
http://alt-shn.blogspot.com
www.alt-shn.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20101024/f22a8f02/attachment.html


More information about the grass-user mailing list