<div dir="ltr">dear all,<div>i'm dealing this time with r.mapcalc. I have different rasters which i grouped using g.list.</div><div>Now r_list contains all my raster. I want to multiply those rasters to another raster (called "costante")  in order to obtain a new map, that i want to call as r followed by the letter "k"</div><div>Here it is what i've done:</div><div>import grass.script as gscript</div><div>>>> r_list = gscript.read_command("g.list" , type = "rast" ).strip().split("\n")</div><div>>>> c = " costante"</div><div>>>> for r in r_list:</div><div>>>>     gscript.mapcalc ( " %s = %s * %s "  % ((r+"k") , r , c))</div><div><br></div><div>i get the following traceback message:</div><div><br></div><div>Invalid map <1></div><div>parse error</div><div>ERROR: parse error</div><div>ERROR: An error occurred while running r.mapcalc</div><div>I don't really know where i'm wrong!</div><div><br></div><div><br></div><div><br></div></div>