<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 15, 2014 at 6:30 PM, Frederico Mestre <span dir="ltr"><<a href="mailto:mestre.frederico@gmail.com" target="_blank">mestre.frederico@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="color:rgb(12,52,61)"><div style="display:inline">​</div>Hello all:<br></div><div><div class="gmail_quote"><div dir="ltr"><div><font color="#0c343d"><br></font></div><div><font color="#0c343d">I'm using grass through R, however I came across an error, while using a function that uses mapcalculator:</font></div><div><font color="#0c343d"><br></font></div><div><font color="#0c343d">Error in system(cmd0, intern = TRUE) : 'r.mapcalculator.exe' not found</font></div><div><font color="#0c343d">Error in parseGRASS(cmd, legacyExec = legacyExec) : </font></div><div><font color="#0c343d">  r.mapcalculator not found</font></div><div><font color="#0c343d"><br></font></div></div></div></div></div></blockquote><div>The right module for raster algebra is r.mapcalc.<br><br>r.mapcalculator is a sh script used by QGIS Processing and similar tools to help with passing raster maps to GRASS and back. spgrass6 is not doing anything like this as far as I know, so the standard r.mapcalc is the module to use.<br><br></div><div>Perhaps the names are little confusing. Also the fact that r.mapcalculator is sh script in GRASS GIS 7 is quite surprising.<br><br></div><div>Anyway, r.mapcalc should solve your problem.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div class="gmail_quote"><div dir="ltr"><div><font color="#0c343d"></font></div><div><font color="#0c343d">I initiated the grass session by doing:</font></div><div><font color="#0c343d"><br></font></div><div><font color="#0c343d">initGRASS(gisBase = 'C:/Program Files (x86)/GRASS GIS 7.0.0beta1', home=tempdir(), override=TRUE)</font></div><div><font color="#0c343d"><br></font></div><div><font color="#0c343d">I can see that the maps are in the mapset, because when I do:</font></div><div><font color="#0c343d"><br></font></div><div><font color="#0c343d">execGRASS("g.mlist", parameters = list(type = "rast"))</font></div><div><font color="#0c343d"><br></font></div><div><font color="#0c343d">I see the list of map names.</font></div><div><font color="#0c343d"><br></font></div><div><font color="#0c343d">Any help?</font></div><div><font color="#0c343d"><br></font></div><div><font color="#0c343d">Already tried to re-install grass, and installed the last version of it.</font></div><div><font color="#0c343d"><br></font></div><div><font color="#0c343d">Thanks,</font></div><div><font color="#0c343d"><br></font></div><div><font color="#0c343d">Frederico</font></div></div></div></div>
<div hspace="streak-pt-mark" style="max-height:1px"><img style="width: 0px; max-height: 0px;" src="https://mailfoogae.appspot.com/t?sender=abWVzdHJlLmZyZWRlcmljb0BnbWFpbC5jb20%3D&type=zerocontent&guid=286934f7-ed26-487a-ab18-4fc62c0982c3"><font size="1" color="#ffffff">ᐧ</font></div></div>
<br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></blockquote></div><br></div></div>