<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Roger,<br>
    <br>
    Apparently the error was due to a mismatch with the default
    g.region. After checking in GRASS for g.region -p I found that it
    was set to 100 x 101 columns. If any of you ever encounter the same
    problem, just make sure to set the g.region using the same input
    raster of interest, i.e. using g.region raster=<i>your_raster_name</i>.
    <br>
    <br>
    Are there any plans to make use of the 'raster' package so that
    readRAST() reads a 'raster' R obj instead of a sp griddataframe?
    Same for writeRAST().<br>
    <br>
    Thank you,<br>
    Francesco<br>
    <br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 3/18/2015 11:32 AM, Roger Bivand
      wrote:<br>
    </div>
    <blockquote
      cite="mid:alpine.LFD.2.11.1503181625450.25797@reclus.nhh.no"
      type="cite">On Wed, 18 Mar 2015, Francesco Tonini wrote:
      <br>
      <br>
      <blockquote type="cite">Dear all,
        <br>
        <br>
        I am testing rgrass7 and trying to read a single raster file
        calling R from GRASS. I am using the function readRAST().
        Currently, this return a SpatialGridDataFrame R object but it
        seems to have a bug when reading the correct number of
        observations. In my case the input raster is 100 x 100 so it
        should have 10,000 observations (ncell). Instead, readRAST()
        read 100 x 101 with 10,100 observations. Did anybody encounter
        this issue or know what it could be caused by?
        <br>
        I can send over my input raster if that helps to test on your
        machines.
        <br>
      </blockquote>
      <br>
      Please make an archive file of (parts of) your location, including
      all the upper-level files, but maybe excluding other data than the
      raster file in question. In the packaged location, the same
      problem should occur. Put the archive file somewhere from which it
      can be downloaded. I'll take a look.
      <br>
      <br>
      Roger
      <br>
      <br>
      <blockquote type="cite">
        <br>
        Any help is much appreciated.
        <br>
        <br>
        Thank you.
        <br>
        Francesco
        <br>
        _______________________________________________
        <br>
        grass-stats mailing list
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:grass-stats@lists.osgeo.org">grass-stats@lists.osgeo.org</a>
        <br>
        <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-stats">http://lists.osgeo.org/mailman/listinfo/grass-stats</a>
        <br>
        <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>