inst/doc/demo.R

## ----message=FALSE, warning=FALSE---------------------------------------------
library(whitebox)

## -----------------------------------------------------------------------------
print(wbt_help())

## -----------------------------------------------------------------------------
print(wbt_license())

## -----------------------------------------------------------------------------
print(wbt_version())

## ----eval=FALSE, message=FALSE------------------------------------------------
#  print(wbt_toolbox())

## ----eval=FALSE, message=FALSE------------------------------------------------
#  print(wbt_list_tools())

## ----eval=FALSE, message=FALSE------------------------------------------------
#  print(wbt_list_tools("lidar"))

## -----------------------------------------------------------------------------
print(wbt_tool_help("lidar_info"))

## -----------------------------------------------------------------------------
print(wbt_tool_parameters("slope"))

## -----------------------------------------------------------------------------
print(wbt_view_code("breach_depressions"))

## ----eval=FALSE---------------------------------------------------------------
#  library(whitebox)
#  # Set input raster DEM file
#  dem <- system.file("extdata", "DEM.tif", package="whitebox")
#  
#  # Run tools
#  wbt_feature_preserving_smoothing(dem, "./smoothed.tif", filter=9, verbose_mode = TRUE)
#  wbt_breach_depressions("./smoothed.tif", "./breached.tif")
#  wbt_d_inf_flow_accumulation(dem, "./flow_accum.tif")

Try the whitebox package in your browser

Any scripts or data that you put into this service are public.

whitebox documentation built on Sept. 7, 2020, 3 p.m.