<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi Chris,<br>
    no I didn't know that. I have my environment as such:<br>
    the initiation of the GRASS-R interface is as such:<br>
    <br>
    initGRASS("C:/Program Files (x86)/GRASS-65-SVN", home=tempdir(),
    gisDbase=gisDbase, location="VPH_PC", mapset=paste("Maps",sep=""),
    override=T)<br>
    So the PATH should be "C:/Program Files (x86)/GRASS-65-SVN"<br>
    <br>
    Could the space in "Program Files (x86)" be causing the problem?<br>
    <br>
    execGRASS("g.gisenv")<br>
    GISDBASE='D:/GIS Database/';<br>
    LOCATION_NAME='VPH_PC';<br>
    MAPSET='Maps';<br>
    GRASS_GUI='text';<br>
    <br>
    When looking at the r.shaded.relief script, I find no error to be
    returned the say anything about an operand.<br>
    <br>
    One parses when one messes with grass when it is calculating:<br>
    &nbsp;&nbsp; g.message -e "In calculation, script aborted."<br>
    <br>
    Another:<br>
    &nbsp;&nbsp; g.message -e&nbsp; "Map &lt;$elev&gt; not found."<br>
    and:<br>
    &nbsp;&nbsp;&nbsp; g.message -e "Input elevation map and output relief map must
    have different names"<br>
    <br>
    hmm.... As I said GRASS carries out the command just fine. This may
    be a problem with the XML package (a dependency of the spgrass6
    package) or spgrass6 package in that R halts the computation because
    it thinks that GRASS is sending them an error. This post may belong
    in the grass-stats list.<br>
    <br>
    Thank you for the help and no reason to be sorry.<br>
    <br>
    Regards,<br>
    Brian<br>
    <br>
    <br>
    <br>
    <br>
    On 11/16/2010 2:35 AM, Chris Carleton wrote:
    <blockquote
      cite="mid:AANLkTik3kFRkBdppemXGtGFoO5cmB+o_Q+2LO5qBXzk2@mail.gmail.com"
      type="cite">You may know this already, but the error seems to be
      saying something about problems with your PATH. What are your
      system specs? What is the full path to your GIS database that
      grass uses? There might be something irregular about your path,
      but it could also be that there is a typo in the shaded relief
      script that's in your SVN version (i.e. the unusual operand it's
      complaining about). Check out this webpage for more details<br>
      <br>
      <a moz-do-not-send="true"
href="http://www.opengroup.org/onlinepubs/9699919799/functions/basename.html">http://www.opengroup.org/onlinepubs/9699919799/functions/basename.html</a><br>
      <br>
      and if you can't find the error then try the grass-dev mailing
      list. Glynn or Markus or one of the other developers will likely
      have a good idea about why the basename function is returning an
      error and where it is - in case you don't already know they are
      awesome when it comes to free online support for GRASS users. Hope
      it works out and sorry I couldn't be of more help.<br>
      <br>
      C<br>
      <br>
      <div class="gmail_quote">On 15 November 2010 20:07, Brian Oney <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:zenlines@gmail.com">zenlines@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div text="#000000" bgcolor="#ffffff"> Thanks Chris,<br>
            but it returned the same error. I will note that for the
            future though. I stuck to that because it was an example in
            the ps.map part of the wiki.<br>
            <font color="#888888"> Brian</font>
            <div>
              <div class="h5"><br>
                <br>
                On 11/16/2010 2:04 AM, Chris Carleton wrote:
                <blockquote type="cite">Off the top of my head the '.'
                  in your map name is causing problems. Technically, I
                  think you can use any character (with a few
                  exceptions) in map names, but it's better to avoid
                  most of them and stick to alphanumeric and '_' to
                  separate portions of the name.<br>
                  <br>
                  Chris <br>
                  <br>
                  <div class="gmail_quote">On 15 November 2010 19:43,
                    brian <span dir="ltr">&lt;<a moz-do-not-send="true"
                        href="mailto:zenlines@gmail.com" target="_blank">zenlines@gmail.com</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin: 0pt
                      0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                      204, 204); padding-left: 1ex;"> <br>
                      Hello List,<br>
                      I am having trouble parsing the r.shaded.relief
                      module from R using the<br>
                      spgrass6 package.<br>
                      When doing it directly in GRASS, it works but an
                      error is first returned. It<br>
                      goes as follows:<br>
                      <br>
                      r.shaded.relief map=alt shadedmap=elev.shad_relief
                      altitude=80 --overwrite<br>
                      basename: extra operand<br>
                      `(x86)/GRASS-65-SVN/scripts/r.shaded.relief'<br>
                      Try `basename --help' for more information.<br>
                      basename: extra operand<br>
                      `(x86)/GRASS-65-SVN/scripts/r.shaded.relief'<br>
                      Try `basename --help' for more information.<br>
                      Calculating shading, please stand by.<br>
                      Color table for raster map
                      &lt;elev.shad_relief&gt; set to 'grey'<br>
                      Shaded relief map created and named
                      &lt;elev.shad_relief&gt;.<br>
                      <br>
                      This looks the same in R but this causes R to
                      cease computation. The above<br>
                      command sent with R yields:<br>
                      <br>
                      &gt;
                      execGRASS("r.shaded.relief",flags="overwrite",
                      parameters=list(map="alt",<br>
                      &gt; altitude=80, shadedmap="elev.shad_relief"))<br>
                      Error : basename: extra operand
                      `(x86)/GRASS-65-SVN/scripts/r.shaded.relief'<br>
                      Try `basename --help' for more information.<br>
                      &lt;?xml version="1.0" encoding="CP1252"?&gt;<br>
                      &lt;!DOCTYPE task SYSTEM "grass-interface.dtd"&gt;<br>
                      ...<br>
                      &lt;/task&gt; &nbsp;does not seem to be XML, nor to
                      identify a file name<br>
                      Error in parseGRASS(cmd) : r.shaded.relief not
                      parsed<br>
                      <br>
                      Is this a bug or my mistake?<br>
                      <br>
                      Thanks,<br>
                      Brian<br>
                      <font color="#888888"><br>
                        <br>
                        <br>
                        <br>
                        --<br>
                        View this message in context: <a
                          moz-do-not-send="true"
href="http://osgeo-org.1803224.n2.nabble.com/r-shaded-relief-spgrass6-problems-tp5742202p5742202.html"
                          target="_blank">http://osgeo-org.1803224.n2.nabble.com/r-shaded-relief-spgrass6-problems-tp5742202p5742202.html</a><br>
                        Sent from the Grass - Users mailing list archive
                        at Nabble.com.<br>
                        _______________________________________________<br>
                        grass-user mailing list<br>
                        <a moz-do-not-send="true"
                          href="mailto:grass-user@lists.osgeo.org"
                          target="_blank">grass-user@lists.osgeo.org</a><br>
                        <a moz-do-not-send="true"
                          href="http://lists.osgeo.org/mailman/listinfo/grass-user"
                          target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
                        <br>
                      </font></blockquote>
                  </div>
                  <br>
                </blockquote>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
  </body>
</html>