
getXYcoords
computes the geographical coordinates of
the rows and columns of pixels of a raster map of class
asc
. Code & helpfile were modified from adehabitat
package.
getXYcoords(w)
asc
.tasc = as.asc(matrix(rep(x=1:10, times=1000),nr=100)); print(tasc)
getXYcoords(tasc)
Run the code above in your browser using DataLab