[R-sig-Geo] find raster cells with non-NA values

Struve,Juliane jstruve at ufl.edu
Thu Oct 6 14:40:41 CEST 2011


Good morning,

Is 
myraster[values(myraster)!="NA"]

what you are looking for ?

Regards,

Juliane 

Dr. Juliane Struve
Fisheries and Aquatic Sciences
7922 NW 71st Street, Gainesville, FL 32653
352-273-3632 (tel)
352-392-3672 (fax)
email: jstruve at ufl.edu



-----Original Message-----
From: r-sig-geo-bounces at r-project.org [mailto:r-sig-geo-bounces at r-project.org] On Behalf Of jcoyle
Sent: Thursday, October 06, 2011 8:31 AM
To: r-sig-geo at r-project.org
Subject: [R-sig-Geo] find raster cells with non-NA values

I would like to 1) find which cell numbers in a raster have non-NA values so that I can 2) use extract to calculate the variance within a radius of each of these cell centers.  I think I have figured out part 2, but am having trouble with part 1. 

Thanks for you assistance.

--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/find-raster-cells-with-non-NA-values-tp6865759p6865759.html
Sent from the R-sig-geo mailing list archive at Nabble.com.

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo



More information about the R-sig-Geo mailing list