lonlatFromCell: Raster cell longitude and latitudes

Description Usage Arguments Details Value

View source: R/regrid.R

Description

Extract longitude and latitude of raster cells.

Usage

1
lonlatFromCell(object, cell = NULL, spatial = FALSE)

Arguments

object

a raster object

cell

the cell numbers

spatial

return locations as SpatialPoints object instead of a matrix.

Details

Extract the longitude and latitude of the center of the requested cells of a Raster* object, similar to xyFromCell.

from SGAT

Value

the lon,lat locations for the requested cells.


mdsumner/roc documentation built on May 22, 2019, 5:05 p.m.