Skip to content

To extract coordinates and NDVI value for each pixel

3 messages · Komine, Mathieu Rajerison

#
Hi
I want to continue a subject that I have not followed due to a trip.
I arrive to obtain the coordinates and the pixel values of my image using
the code proposed by Robert Hijmans. I have 5168101 rows whose some rows
appear on the R console. Thus I receive this  message:
How can I save the entire matrix to a file (. txt)?
Thank you in advance

Komine

--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/To-extract-coordinates-and-NDVI-value-for-each-pixel-tp6737676p6796445.html
Sent from the R-sig-geo mailing list archive at Nabble.com.
#
Hi,
Thank you Mathieu for your answer. I tried with write.matrix (MASS) but the
result don't change. I have not all the matrix. I want that all the matrix
appears on the 
console or to save it in a file (.txt). If I try a small Matrix for example
(Mat1[1:5,]) the result is correct but If I use the true size of my matrix
(Mat[1:5168101,] I have not all the matrix 
How can I save the entire matrix to a file (. txt)? 

I used this code:
paste(PixelColonne[,1],PixelColonne[,2],sep=" "))
c("Longitude","Latitude","ValeurPixel","Coordonnees")
Thank you in advance 
Komine 


--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/To-extract-coordinates-and-NDVI-value-for-each-pixel-tp6737676p6797943.html
Sent from the R-sig-geo mailing list archive at Nabble.com.