Description Usage Arguments Note Author(s) Examples
Extracts raster data at vector locations.
1 2 3 4 5 |
vectors |
a vector of superclass "Spatial" or a list of vectors. |
rasters |
a raster of superclass "Raster" or a list of rasters. |
outformat |
Character. Can be "SpatialDataFrame" (appends the extracted data to the original Spatial* object) or "DataFrame" (only returns the data.frame portion). |
... |
See ?extract for parameters (e.g. "fun") that can be used. |
borderx |
TODO |
bordery |
TODO |
force_window_odd |
TODO |
miniraster_direction |
TODO |
miniraster_vector |
TODO |
verbose |
TODO |
If the input vector(s) are SpatialPolygonsDataFrame, the user must assign "fun" if outformat="SpatialDataFrame".
Jonathan A. Greenberg STARStools@estarcion.net
1 2 3 4 5 6 7 8 9 | ## Not run:
tahoe_highrez <- brick(system.file("external/tahoe_highrez.tif", package="STARStools"))
tahoe_highrez_training_polygons <- readOGR(dsn=system.file("external", package="STARStools"),layer="tahoe_highrez_training")
tahoe_training_extraction <- rstarspan(vectors=tahoe_highrez_training,rasters=tahoe_highrez,outformat="SpatialDataFrame",fun=mean)
tahoe_highrez_training_points <- readOGR(dsn=system.file("external", package="STARStools"),layer="tahoe_highrez_training_points")
tahoe_training_extraction_minirasterstrip <- rstarspan(vectors=tahoe_highrez_training_points,
rasters=tahoe_highrez,outformat="MiniRasterStrip",borderx=5,bordery=5)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.