whitebox examples

About WhiteboxTools

Load the whitebox R package.

library(whitebox)

Prints the whitebox-tools help...a listing of available commands.

print(wbt_help())

Prints the whitebox-tools license.

print(wbt_license())

Prints the whitebox-tools version.

print(wbt_version())

Prints the toolbox for a specific tool.

print(wbt_toolbox())

List all available tools in whitebox-tools.

print(wbt_list_tools())

Lists tools with 'lidar' in tool name or description.

print(wbt_list_tools("lidar"))

Prints the help for a specific tool.

print(wbt_tool_help("lidar_info"))

Retrieves the tool parameter descriptions for a specific tool.

print(wbt_tool_parameters("slope"))

View the source code for a specific tool on the source code repository.

print(wbt_view_code("breach_depressions"))

How to run tools?

library(whitebox)

# Set input raster DEM file
dem <- system.file("extdata", "DEM.tif", package="whitebox")

# Run tools
feature_preserving_denoise(dem, "./smoothed.tif", filter=9, verbose_mode = TRUE)
breach_depressions("./smoothed.tif", "./breached.tif")
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 Feb. 8, 2019, 1:04 a.m.