Skip to content
Prev 8413 / 29559 Next

Best way to get values of a raster that are not masked?

Hi Jonathan,

The function rasterToPoints does that. Its default behavior is to
returns a matrix with coordinates and values for all cells that are
not NA.
You can also ask for cells with a specific range of values, and for a
SptialPointDataFrame.

Robert


On Wed, Jun 2, 2010 at 5:27 PM, Jonathan Greenberg
<greenberg at ucdavis.edu> wrote: