Skip to content
Prev 17228 / 29559 Next

See coordinates vector in raster

You can just do

xy <- coordinates(r1)

which gives a 2-column matrix with

lon <- xy[,1]
lat <- xy[,2]

Note that for largish rasters this is a considerable amount of data,
and it's mostly all redundant since you can generate it from the
resolution and extent, so you might need to consider other options.

Cheers, Mike.

On Wed, Jan 23, 2013 at 10:55 AM, Thiago V. dos Santos
<thi_veloso at yahoo.com.br> wrote: