Dear list members,
I got this error when running function krige:
rich.vgm = variogram(N ~ 1, data = rich)
rich.fit = fit.variogram(rich.vgm, model = vgm(8.8, "Ste", 0.003))
> rich.kriged = krige(N~1, rich, as(r, "SpatialGridDataFrame"), model =
rich.fit)
Error in predict.gstat(g, newdata = newdata, block = block, nsim = nsim, :
var1 : data item in gstat object and newdata have different
coordinate reference systems
Ant help will be appreciated.
Best,
Manuel
--
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola@una.ac.cr
mspinola10@gmail.com
Teléfono: (506) 2277-3598
Fax: (506) 2237-7036
Personal website: Lobito de río
Institutional website: ICOMVIS
[[alternative HTML version deleted]]