[R] exporting rast from R to GRASS

Dylan Beaudette dylan.beaudette at gmail.com
Wed Dec 10 05:03:13 CET 2008


On Tue, Dec 9, 2008 at 6:03 PM, Thybério Luna Freire <thyberio at gmail.com> wrote:
> Hi, everybody!
> i created a imagem by kriging using geoR package. I imported  points
> from GRASS("zn", after converted to geodata "zn_geo"), the border
> "zn_border" and a raster mask. Then i interpolated the points by
> kriging and created a raster image. Now, i need export this image back
> to GRASS to use it in the module r.mapcalc. I can't do it. I tried use
> writeRAST6, but it returns a message:  "tentativa de obter um slot
> "data" de um objeto cuja classe ("kriging") não é um objeto S4" or
> "attempt to obtain a slot from an object whose class ("kriging") is
> not a S4 object". what does this mean?
> Help me, please!
>
> Thybério Luna - Brazil
>

Hi,

Don't know much about geoR, but you probably need to coerce your
kriging results into an sp-class object.

Some ideas here:
http://casoilresource.lawr.ucdavis.edu/drupal/node/438

specifically:
library(spGRASS6)
?SpatialGridDataFrame

Cheers,

Dylan



More information about the R-help mailing list