Muito obrigado Éder, resolvido!!!!!! |
Alterando grid para representar centro dos pixels... ### ## Dados simulados dCol <- 3; nCol <- 10 dLin <- 2; nLin <- 10 injuria <- matrix(rnorm(nCol*nLin, mean=12), nLin, nCol) dim(injuria) ## Coordenadas do grid espaçadas 3 x 2 p0 <- c(680200,7803300) ### Lower Left p1 <- p0 + c(dCol/2, dLin/2) grid <- expand.grid(x=seq(p1[1], by=dCol, len=nCol), y=seq(p1[2], by=dLin, len=nLin)) plot(grid, asp=T, pch=21) require(raster) r <-raster(injuria, xmn=p0[1], xmx=p0[1]+(nCol*dCol), ymn=p0[2], ymx=p0[2]+(nLin*dLin), crs=CRS("+proj=utm +zone=23 +south +datum=WGS84 +units=m +no_defs")) plot(r); points(grid, pch=21) r ### ================================================Éder Comunello PhD Student in Agricultural Systems Engineering (USP/Esalq) Brazilian Agricultural Research Corporation (Embrapa) Dourados, MS, Brazil [22 16.5'S, 54 49.0'W] Em 19 de janeiro de 2016 09:43, ASANTOS <alexandresantosbr@yahoo.com.br> escreveu:
|