From ab0019db3140af212e8f810f836f868939c438ec Mon Sep 17 00:00:00 2001 From: jfbourdon Date: Wed, 4 Aug 2021 15:51:33 -0400 Subject: [PATCH] comment rise pit cells --- .../tools/hydro_analysis/breach_depressions_least_cost.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/whitebox-tools-app/src/tools/hydro_analysis/breach_depressions_least_cost.rs b/whitebox-tools-app/src/tools/hydro_analysis/breach_depressions_least_cost.rs index e791fa507..035b7f182 100644 --- a/whitebox-tools-app/src/tools/hydro_analysis/breach_depressions_least_cost.rs +++ b/whitebox-tools-app/src/tools/hydro_analysis/breach_depressions_least_cost.rs @@ -28,9 +28,10 @@ use std::thread; /// loosely based on the algorithm described by Lindsay and Dhun (2015), furthering the earlier /// algorithm with efficiency optimizations and other significant enhancements. The approach uses a least-cost /// path analysis to identify the breach channel that connects pit cells (i.e. grid cells for -/// which there is no lower neighbour) to some distant lower cell. Here, the cost of a breach -/// path is determined by the amount of elevation lowering needed to cut the breach channel -/// through the surrounding topography. +/// which there is no lower neighbour) to some distant lower cell. Prior to breaching and in order +/// to minimize the depth of breach channels, all pit cells are rised to the elevation of the lowest +/// neighbour minus a small heigh value. Here, the cost of a breach path is determined by the amount +/// of elevation lowering needed to cut the breach channel through the surrounding topography. /// /// The user must specify the name of the input DEM file (`--dem`), the output breached DEM /// file (`--output`), the maximum search window radius (`--dist`), the optional maximum breach