[RS-ecology] GEOGRAPHICAL COORDINATE S OF A PIXEL

François Messner francois.messner at univ-lemans.fr
Fri Sep 28 14:47:49 CEST 2018


Hello,

I think you can use the function xyFromCell from raster package.
https://rdrr.io/cran/raster/man/xyFromCell.html

François Messner
Technicien en géomatique
Université du Maine - GREGUM UMR ESO
Tel: 02 43 83 31 80

Le 28/09/2018 13:24, Rop Willy a écrit :
> Hello,
>
> I have 2 questions to ask:
>
>
> 1. I have obtained a Landsat image and I want to carry out a 
> supervised classification and I have to collect validation data in the 
> field.How do I obtain the geographic coordinates for a particular 
> pixel? I've tried to use extract () and coordinates() function but 
> don't seem to get it. How can I, for example, get the geographic 
> coordinates of an upper right pixel in R?
>
> 2. More or less related to the above question, I've generated an NDVI 
> image in R. How do I get the NDVI value of a pixel located at certain 
> pixel coordinates? For example, pixel coordinate (200, 200)?
>
>
> _______________________________________________
> RS-ecology mailing list
> RS-ecology at lists.uni-wuerzburg.de
> https://lists.uni-wuerzburg.de/mailman/listinfo/rs-ecology

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-wuerzburg.de/pipermail/rs-ecology/attachments/20180928/19c10f0c/attachment.html>


More information about the RS-ecology mailing list