On Tue, Dec 9, 2008 at 6:03 PM, Thybério Luna Freire <[EMAIL PROTECTED]> 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 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.