grapes-rpygeo_-grapes: Subtraction operator

Description Usage Arguments Value Author(s) Examples

Description

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

# Substract raster from itself
ras %rpygeo_+% ras %>%
  rpygeo_load()

## End(Not run)

RPyGeo documentation built on May 1, 2019, 6:48 p.m.