powered by
Extracts coordinates of cells with defined cell class from a raster object.
coordinate.list(raster, cell.class, compare = "")
raster with values
number or vector of cell-values for clustering
character of type "", "g" or "s". If "g" or "s" all coordinates of cells with value greater "g" resp. smaller "s" than cell.class will be extracted
Returns a data frame with lat-, long-coordinates
Works also for very large raster, but can take some time.
# NOT RUN { data("landcover") coordinate.list(landcover, 1:10) # }
Run the code above in your browser using DataLab