lonlatFromCell | R Documentation |
Extract longitude and latitude of raster cells.
lonlatFromCell(raster, cells, spatial = FALSE) cellFromLonLat(raster, pts)
raster |
a raster object |
cells |
the cell numbers |
spatial |
return locations as SpatialPoints object instead of a matrix. |
pts |
the lon, lat locations as a 2 column matrix |
Extract the longitude and latitude of the center of the requested
cells of a Raster* object, similar to xyFromCell
and cellFromXY
.
lonlatFromCell
returns the lon,lat locations for
the requested cells as a 2 column matrix, and
cellFromLonLat
returns the cells corresponding to the 2
column matrix of lon,lat positions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.