grapes-rpygeo_-plus-grapes: Addition operator

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
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

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

# Add raster to itself
ras %rpygeo_+% ras %>%
  rpygeo_load()

## End(Not run)

fapola/RPyGeo documentation built on Nov. 13, 2018, 7:05 a.m.