Skip to content

Commit 96dc3db

Browse files
committed
Docs
1 parent 16a2bda commit 96dc3db

File tree

1,094 files changed

+9255
-3795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,094 files changed

+9255
-3795
lines changed

.Rbuildignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
^\.travis\.yml$
88
^\.github$
99
^WhiteboxTools_linux_amd64\.zip$
10-
^output\.tif$
10+
^.*\.tif$
11+
^.*\.json$
1112
^doc$
1213
^Meta$
1314
^data-raw$

NEWS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88

99
* Add `wbt_compress_rasters()` to set package option `whitebox.compress_rasters`
1010

11-
* Updated how `--compress_rasters` parameter is passed via command line. Now the flag is added to all commands regardless of whether the value is `TRUE` or `FALSE`. This allows update of settings.json accordingly when `--compress_rasters=FALSE`. RE: https://github.com/jblindsay/whitebox-tools/issues/233#issuecomment-1065955783
11+
* Updated how `--compress_rasters` parameter is passed via command line. Now the flag is added to all commands regardless of whether the value is `TRUE` or `FALSE`. This allows update of settings.json accordingly when `--compress_rasters=FALSE`. RE: https://github.com/jblindsay/whitebox-tools/issues/233#issuecomment-1065955783
12+
13+
* Add `wbt_max_procs()` to set package option `whitebox.max_procs`
14+
15+
* All `wbt_*()` tool functions now take a `command_only` argument that is passed to `wbt_run_tool()`. When `TRUE`, the function returns the command that would be run by `system()` instead of running the tool.
1216

1317
# whitebox 2.1.0
1418

PY2R/automation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,14 @@ def function_example(fun_name):
300300
i = i + 1
301301
ff.write("#' @param wd Changes the working directory.\n")
302302
ff.write(
303-
"#' @param verbose_mode Sets verbose mode. If verbose mode is False, tools will not print output messages.\n"
303+
"#' @param verbose_mode Sets verbose mode. If verbose mode is `FALSE`, tools will not print output messages.\n"
304304
)
305305
ff.write(
306306
"#' @param compress_rasters Sets the flag used by WhiteboxTools to determine whether to use compression for output rasters.\n"
307307
)
308+
ff.write(
309+
"#' @param command_only Return command that would be executed by `system()` rather than running tool.\n"
310+
)
308311
ff.write("#'\n")
309312
ff.write("#' @return Returns the tool text outputs.\n")
310313
ff.write("#' @export\n")

PY2R/scripts/data_tools.R

Lines changed: 52 additions & 26 deletions
Large diffs are not rendered by default.

PY2R/scripts/gis_analysis.R

Lines changed: 180 additions & 90 deletions
Large diffs are not rendered by default.

PY2R/scripts/hydro_analysis.R

Lines changed: 114 additions & 57 deletions
Large diffs are not rendered by default.

PY2R/scripts/image_analysis.R

Lines changed: 146 additions & 73 deletions
Large diffs are not rendered by default.

PY2R/scripts/lidar_analysis.R

Lines changed: 108 additions & 54 deletions
Large diffs are not rendered by default.

PY2R/scripts/machine_learning.R

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
#' @param search_dist Search-distance parameter.
99
#' @param min_points Minimum point density needed to define 'core' point in cluster.
1010
#' @param wd Changes the working directory.
11-
#' @param verbose_mode Sets verbose mode. If verbose mode is False, tools will not print output messages.
11+
#' @param verbose_mode Sets verbose mode. If verbose mode is `FALSE`, tools will not print output messages.
1212
#' @param compress_rasters Sets the flag used by WhiteboxTools to determine whether to use compression for output rasters.
13+
#' @param command_only Return command that would be executed by `system()` rather than running tool.
1314
#'
1415
#' @return Returns the tool text outputs.
1516
#' @export
@@ -51,8 +52,9 @@ wbt_dbscan <- function(inputs, output, scaling="Normalize", search_dist=0.01, mi
5152
#' @param initialize How to initialize cluster centres?.
5253
#' @param min_class_size Minimum class size, in pixels.
5354
#' @param wd Changes the working directory.
54-
#' @param verbose_mode Sets verbose mode. If verbose mode is False, tools will not print output messages.
55+
#' @param verbose_mode Sets verbose mode. If verbose mode is `FALSE`, tools will not print output messages.
5556
#' @param compress_rasters Sets the flag used by WhiteboxTools to determine whether to use compression for output rasters.
57+
#' @param command_only Return command that would be executed by `system()` rather than running tool.
5658
#'
5759
#' @return Returns the tool text outputs.
5860
#' @export
@@ -101,8 +103,9 @@ wbt_k_means_clustering <- function(inputs, output, classes, out_html=NULL, max_i
101103
#' @param clip Perform training data clipping to remove outlier pixels?.
102104
#' @param test_proportion The proportion of the dataset to include in the test split; default is 0.2.
103105
#' @param wd Changes the working directory.
104-
#' @param verbose_mode Sets verbose mode. If verbose mode is False, tools will not print output messages.
106+
#' @param verbose_mode Sets verbose mode. If verbose mode is `FALSE`, tools will not print output messages.
105107
#' @param compress_rasters Sets the flag used by WhiteboxTools to determine whether to use compression for output rasters.
108+
#' @param command_only Return command that would be executed by `system()` rather than running tool.
106109
#'
107110
#' @return Returns the tool text outputs.
108111
#' @export
@@ -149,8 +152,9 @@ wbt_knn_classification <- function(inputs, training, field, output, scaling="Nor
149152
#' @param weight Use distance weighting?.
150153
#' @param test_proportion The proportion of the dataset to include in the test split; default is 0.2.
151154
#' @param wd Changes the working directory.
152-
#' @param verbose_mode Sets verbose mode. If verbose mode is False, tools will not print output messages.
155+
#' @param verbose_mode Sets verbose mode. If verbose mode is `FALSE`, tools will not print output messages.
153156
#' @param compress_rasters Sets the flag used by WhiteboxTools to determine whether to use compression for output rasters.
157+
#' @param command_only Return command that would be executed by `system()` rather than running tool.
154158
#'
155159
#' @return Returns the tool text outputs.
156160
#' @export
@@ -197,8 +201,9 @@ wbt_knn_regression <- function(inputs, training, field, scaling="Normalize", out
197201
#' @param output Name of the output raster file.
198202
#' @param test_proportion The proportion of the dataset to include in the test split; default is 0.2.
199203
#' @param wd Changes the working directory.
200-
#' @param verbose_mode Sets verbose mode. If verbose mode is False, tools will not print output messages.
204+
#' @param verbose_mode Sets verbose mode. If verbose mode is `FALSE`, tools will not print output messages.
201205
#' @param compress_rasters Sets the flag used by WhiteboxTools to determine whether to use compression for output rasters.
206+
#' @param command_only Return command that would be executed by `system()` rather than running tool.
202207
#'
203208
#' @return Returns the tool text outputs.
204209
#' @export
@@ -240,8 +245,9 @@ wbt_logistic_regression <- function(inputs, training, field, scaling="Normalize"
240245
#' @param max_iterations Maximum number of iterations.
241246
#' @param class_change Minimum percent of cells changed between iterations before completion.
242247
#' @param wd Changes the working directory.
243-
#' @param verbose_mode Sets verbose mode. If verbose mode is False, tools will not print output messages.
248+
#' @param verbose_mode Sets verbose mode. If verbose mode is `FALSE`, tools will not print output messages.
244249
#' @param compress_rasters Sets the flag used by WhiteboxTools to determine whether to use compression for output rasters.
250+
#' @param command_only Return command that would be executed by `system()` rather than running tool.
245251
#'
246252
#' @return Returns the tool text outputs.
247253
#' @export
@@ -290,8 +296,9 @@ wbt_modified_k_means_clustering <- function(inputs, output, out_html=NULL, start
290296
#' @param min_samples_split The minimum number of samples required to split an internal node.
291297
#' @param test_proportion The proportion of the dataset to include in the test split; default is 0.2.
292298
#' @param wd Changes the working directory.
293-
#' @param verbose_mode Sets verbose mode. If verbose mode is False, tools will not print output messages.
299+
#' @param verbose_mode Sets verbose mode. If verbose mode is `FALSE`, tools will not print output messages.
294300
#' @param compress_rasters Sets the flag used by WhiteboxTools to determine whether to use compression for output rasters.
301+
#' @param command_only Return command that would be executed by `system()` rather than running tool.
295302
#'
296303
#' @return Returns the tool text outputs.
297304
#' @export
@@ -343,8 +350,9 @@ wbt_random_forest_classification <- function(inputs, training, field, output=NUL
343350
#' @param min_samples_split The minimum number of samples required to split an internal node.
344351
#' @param test_proportion The proportion of the dataset to include in the test split; default is 0.2.
345352
#' @param wd Changes the working directory.
346-
#' @param verbose_mode Sets verbose mode. If verbose mode is False, tools will not print output messages.
353+
#' @param verbose_mode Sets verbose mode. If verbose mode is `FALSE`, tools will not print output messages.
347354
#' @param compress_rasters Sets the flag used by WhiteboxTools to determine whether to use compression for output rasters.
355+
#' @param command_only Return command that would be executed by `system()` rather than running tool.
348356
#'
349357
#' @return Returns the tool text outputs.
350358
#' @export
@@ -394,8 +402,9 @@ wbt_random_forest_regression <- function(inputs, training, field, output=NULL, n
394402
#' @param tolerance The tolerance parameter used in determining the stopping condition.
395403
#' @param test_proportion The proportion of the dataset to include in the test split; default is 0.2.
396404
#' @param wd Changes the working directory.
397-
#' @param verbose_mode Sets verbose mode. If verbose mode is False, tools will not print output messages.
405+
#' @param verbose_mode Sets verbose mode. If verbose mode is `FALSE`, tools will not print output messages.
398406
#' @param compress_rasters Sets the flag used by WhiteboxTools to determine whether to use compression for output rasters.
407+
#' @param command_only Return command that would be executed by `system()` rather than running tool.
399408
#'
400409
#' @return Returns the tool text outputs.
401410
#' @export
@@ -448,8 +457,9 @@ wbt_svm_classification <- function(inputs, training, field, scaling="Normalize",
448457
#' @param gamma Gamma parameter used in setting the RBF (Gaussian) kernel function.
449458
#' @param test_proportion The proportion of the dataset to include in the test split; default is 0.2.
450459
#' @param wd Changes the working directory.
451-
#' @param verbose_mode Sets verbose mode. If verbose mode is False, tools will not print output messages.
460+
#' @param verbose_mode Sets verbose mode. If verbose mode is `FALSE`, tools will not print output messages.
452461
#' @param compress_rasters Sets the flag used by WhiteboxTools to determine whether to use compression for output rasters.
462+
#' @param command_only Return command that would be executed by `system()` rather than running tool.
453463
#'
454464
#' @return Returns the tool text outputs.
455465
#' @export

0 commit comments

Comments
 (0)