[GRASS-user] export from Grass raster to R

Thomas Adams tea3rd at gmail.com
Thu Aug 28 17:16:42 PDT 2014


Vishal,

You need to install the R contributed spgrass6 and raster packages; look at:

http://grasswiki.osgeo.org/wiki/R_statistics
ftp://195.37.229.5/pub/outgoing/mforkel/Rcourse/spatialR.pdf


Regards,
Tom


On Thu, Aug 28, 2014 at 7:15 PM, Vishal Mehta <vishalm1975 at gmail.com> wrote:

> Hi all,
>
> I'm using GRASS 7svn on WIndows, and am wondering about the export to R
> feature.
> The GUI gives the impression i can export from a GRASS raster to an 'R
> Data Object Store'. supported formats for r.out.gdal include R
>
> When i try it, it gives an error after seeming to process it, and
> generates a large file. However i cant open it, and dont know how to bring
> it into R.
> Is it supposed to be an R SpatialGrid object?
>
> *Driver <R> does not support direct writing. Using MEM driver for
> intermediate dataset.*
> *Checking GDAL data type and nodata value...*
> *Input raster map contains cells with NULL-value (no-data). The value nan
> will be used to represent no-data values in the input map. You can specify
> a nodata value with the nodata option.*
> *Exporting raster data to R format...*
> *ERROR 4: `ndvi2.R' not recognised as a supported file*
> *format.*
> *ERROR: Unable to create raster map <ndvi2.R> using driver <R>*
> *(Thu Aug 28 16:14:19 2014) Command finished (9 sec)   *
>
> Thanks for any input,
> Vishal
>
> --
> Vishal K. Mehta, PhD
> Sr Scientist
> Stockholm Environment Institute - US
> 400 F St
> Davis CA 95616
> www.sei-us.org
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20140828/db6e4563/attachment-0001.html>


More information about the grass-user mailing list