[R] function "rast.put" in package(GRASS)

CELINE RONDEY celine.rondey at educagri.fr
Tue Jul 23 10:09:53 CEST 2002


Dear all, 

I would like to use the "rast.put" function under R ( in package
GRASS):"rast.put" moves a single numeric vector to Grass.
This vector is the result of my kriging. 
In fact, i created a grid : 
grid<-data.frame(cbind(c(matrix(H$xseq,length(H$xseq),length(H$yseq))),c(matrix(H$yseq,length(H$xseq),length(H$yseq),byrow=T))))
grid_as.matrix(grid)
colnames(grid)_c("x","y")			#(with H <- gmeta(interp=TRUE))
Loci_grid

and use "krige.conv" ( kc_krige.conv(......)) to obtain this value.
So, my vector is kc$predict .
(This numeric vector for export with length of H$Ncells in GRASS order).

But i have a problem with "rast.put" function. Indeed, when i draw my
raster under GRASS, Xlamb and ylamb are inverted (lambert coordonnees).
I write :
rast.put(H,lname="var_residu",layer=kc$predict,cat=FALSE,interp=TRUE,DCELL=TRUE)

How to use this function?

Thank you for your help

Regards
Céline RONDEY





-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list