Skip to content

Export Kriging

2 messages · Jaime Burbano Girón, Jaime R. Garcia M.

#
JAIME BURBANO GIRON wrote:
Well Jaime, a little more of detail could help giving a you a more 
precise answer. I recently run the /krige /function from *gstat *and my 
result was an object (let's say env) of class "SpatialPixelsDataFrame".
So I had to convert it to a "SpatialGridDataFrame" using the /gridded/ 
and  coercion (/as)/ functions.

 > gridded(env) = TRUE
 > env = as(env, "SpatialGridDataFrame")

And then I used the function write.asciigrid
Check ?write.asciigrid
But you could also use the function readGDAL  and there are others...

Buena Suerte,

Jaime Garcia M.