wbt_filter_raster_features_by_area {whitebox}R Documentation

Filter raster features by area

Description

Removes small-area features from a raster.

Usage

wbt_filter_raster_features_by_area(
  input,
  output,
  threshold,
  background = "zero",
  wd = NULL,
  verbose_mode = FALSE
)

Arguments

input

Input raster file.

output

Output raster file.

threshold

Remove features with fewer grid cells than this threshold value.

background

Background value.

wd

Changes the working directory.

verbose_mode

Sets verbose mode. If verbose mode is False, tools will not print output messages.

Value

Returns the tool text outputs.


[Package whitebox version 1.4.0 Index]