Description Usage Arguments Note Author(s) See Also Examples
A function to extract cell values from a RasterLayer.
1 | extractRasterValues(rasterLayer, selectedCoordinates)
|
rasterLayer |
An object of class |
selectedCoordinates |
An object of class |
The projection
of the given coordinates and RasterLayer
must be the same.
Alexander R. Groos (alexander.groos@giub.unibe.ch)
1 2 3 4 5 6 7 8 9 10 11 | # Load the provided data set and RasterLayer as exemplary
# input for the function
data(selectedCoordinates, lst_30m_hourly,
package = "glacierSMBM")
# Individual data sets should be loaded using the
# functions read.*() or raster(), respectively
# Extract the requested cell values of a RasterLayer based
# on the given coordinates
output <- extractRasterValues(rasterLayer = lst_30m_hourly,
selectedCoordinates = selectedCoordinates)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.