[R-sig-Geo] help on "non-square" problem when using write.asciigrid

Edzer J. Pebesma e.pebesma at geo.uu.nl
Tue Mar 7 08:55:00 CET 2006


Yong Li wrote:

>Dear Friends,
>
>Can anybody help me for the subject?
>When I tried to use write.asciigrid to export a spatialgrid to esri 
>ascii grid, I always failed because of the message "non-square grid 
>is not support" even I knew my grid is 100% squared.
>Yong
>
>_______________________________________________
>R-sig-Geo mailing list
>R-sig-Geo at stat.math.ethz.ch
>https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>  
>
It means that your grid cells are not square, i.e.
they have a different size in x and y direction. Such
a feature is not supported by the asciigrid format.
As an example,

 > library(sp)
 > data(meuse.grid)
 > gridded(meuse.grid) = ~x+y
 > diff(gridparameters(meuse.grid)$cellsize)
[1] 0

--
Edzer




More information about the R-sig-Geo mailing list