[R-sig-Geo] See coordinates vector in raster

Thiago V. dos Santos thi_veloso at yahoo.com.br
Wed Jan 23 00:55:47 CET 2013


Dear all,

Is there any way to access the vector containing the longitude and latitude coordinates of a raster object? For example:


library(raster)
r1 <- raster(nrows=800, ncols=820, xmn=0, xmx=10)

# I am looking for something like this:
r1$lon
r2$lat

Thanks in advance,

Thiago.



More information about the R-sig-Geo mailing list