%rpygeo_*% {RPyGeo}R Documentation

Multiplication operator

Description

Multiplication operator for map algebra. Spatial Analylist extension is requiered for map algebra.

Usage

raster_1 %rpygeo_*% raster_2

Arguments

raster_1

raster dataset or numeric

raster_2

raster dataset or numeric

Value

reticulate object

Author(s)

Marc Becker

Examples


## 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)

[Package RPyGeo version 1.0.0 Index]