If this mail has made it already to the lst, I apologise - I just could not find it anywhere.<br><br><div class="gmail_quote"><br>Hi<br><br>I am thinking about the possibility of loading raster directly from GRASS into R, to avoid the overhang of saving to disk and loading again or having gdal in between GRASS and R.<br>
<br>As R (using the sp package) holds the raster in memory, I was thinking about reading the data from GRASS by using a C function, returning the cell values and additional info (at least the one provided in  esri ACSII file, i.e. NCOLS, NROWS, XLLCORNER, YLLCORNER, CELLSIZE, NODATA_VALUE) plus geo-referencing info, so that, back in R, this data can be assembled to become a spatial object (SpatialGridDataFrame, as defined in the package sp).<br>

<br>The part in R should be quite easy, as soon as I have the data - so is there a C function which could help me to get the data?<br><br>This would be a first step - in the next step, I would be looking into the possibility to use a similar way of writing the data to GRASS,<br>

<br>Any ideas, suggestions?<br><br>Thanks,<br><br>Rainer<br><br>-- <br>Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)<br><br>Centre of Excellence for Invasion Biology<br>

Stellenbosch University<br>South Africa<br><br>Tel :       <a href="tel:%2B33%20-%20%280%299%2053%2010%2027%2044" value="+33953102744" target="_blank">+33 - (0)9 53 10 27 44</a><br>Cell:       <a href="tel:%2B33%20-%20%280%296%2085%2062%2059%2098" value="+33685625998" target="_blank">+33 - (0)6 85 62 59 98</a><br>
Fax (F):       <a href="tel:%2B33%20-%20%280%299%2058%2010%2027%2044" value="+33958102744" target="_blank">+33 - (0)9 58 10 27 44</a><br><br>Fax (D):    <a href="tel:%2B49%20-%20%280%293%2021%2021%2025%2022%2044" value="+4932121252244" target="_blank">+49 - (0)3 21 21 25 22 44</a><br>
<br>email:      <a href="mailto:Rainer@krugs.de" target="_blank">Rainer@krugs.de</a><br>
<br>Skype:      RMkrug<br><br>
</div><br>