Description Usage Arguments Value Author(s) Examples
Multiplication operator for map algebra. Spatial Analylist extension is requiered for map algebra.
1 | raster_1 %rpygeo_*% raster_2
|
raster_1 |
raster dataset or numeric |
raster_2 |
raster dataset or numeric |
reticulate object
Marc Becker
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
# Load the ArcPy module and build environment
arcpy <- arcpy_build_env(overwrite = TRUE, workspace = "C:/workspace")
# Write raster to workspace directory
writeRater(elev, "C:/workspace/elev.tif", extensions = "Spatial")
# Create raster object
ras <- arcpy$sa$Raster("elev.tif")
# Multiply raster to itself
ras %rpygeo_+% ras %>%
rpygeo_load()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.