[R] asc class object - how to get positions (coordinates) for a given raster ID?

Clément Calenge calenge at biomserv.univ-lyon1.fr
Tue Aug 4 13:38:30 CEST 2009

The function getXYcoords in the package adehabitat might help. You may 
also consider asc2spixdf, which returns an object of class 
SpatialPixelsDataFrame (where the coordinates are stored as well as the 
values of the pixel).
Hope this helps,

Clément Calenge.

Paulo Eduardo Cardoso wrote:
> In a raster asc object, I'd like to take the positions (x and y coordinates)
> for a given "pixel" ID. Any idea about how to do this?
> _______________
> Paulo E. Cardoso
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

Office national de la chasse et de la faune sauvage
Saint Benoist - 78610 Auffargis
tel. (33)

More information about the R-help mailing list