grapes-rpygeo_-slash-grapes: Division operator

Description Usage Arguments Value Author(s) Examples

Description

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

# Divide raster by itself
ras %rpygeo_+% ras %>%
  rpygeo_load()

## End(Not run)

fapola/RPyGeo documentation built on April 11, 2020, 3:09 p.m.