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]]
______________________________________________
[email protected] 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.
--
Clément CALENGE
Office national de la chasse et de la faune sauvage
Saint Benoist - 78610 Auffargis
tel. (33) 01.30.46.54.14
______________________________________________
[email protected] 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.