Get raster value at a point.

getValue(raster, x, y)

Arguments

raster

RasterLayer object

x

longitude value (deg E)

y

latitude value (deg N)

Value

Value of raster cell covering the point.