11/*
22This tool is part of the WhiteboxTools geospatial analysis library.
33Authors: Dr. John Lindsay
4- Created: July 8, 2017
4+ Created: 08/07/ 2017
55Last Modified: 29/10/2018
66License: MIT
77*/
@@ -14,6 +14,29 @@ use std::f64;
1414use std:: io:: { Error , ErrorKind } ;
1515use std:: path;
1616
17+ /// This tool can be used to calculate the downslope flowpath length from each grid cell in a raster to
18+ /// an outlet cell either at the edge of the grid or at the outlet point of a watershed. The user must
19+ /// specify the name of a flow pointer grid (`--d8_pntr`) derived using the D8 flow algorithm (`D8Pointer`).
20+ /// This grid should be derived from a digital elevation model (DEM) that has been pre-processed to remove
21+ /// artifact topographic depressions and flat areas (`BreachDepressions`, `FillDepressions`). The user may also
22+ /// optionally provide watershed (`--watersheds`) and weights (`--weights`) images. The optional watershed
23+ /// image can be used to define one or more irregular-shaped watershed boundaries. Flowpath lengths are
24+ /// measured within each watershed in the watershed image (each defined by a unique identifying number) as
25+ /// the flowpath length to the watershed's outlet cell.
26+ ///
27+ /// The optional weight image is multiplied by the flow-length through each grid cell. This can be useful
28+ /// when there is a need to convert the units of the output image. For example, the default unit of
29+ /// flowpath lengths is the same as the input image(s). Thus, if the input image has X-Y coordinates
30+ /// measured in metres, the output image will likely contain very large values. A weight image containing
31+ /// a value of 0.001 for each grid cell will effectively convert the output flowpath lengths into kilometres.
32+ /// The weight image can also be used to convert the flowpath distances into travel times by multiplying the
33+ /// flow distance through a grid cell by the average velocity.
34+ ///
35+ /// NoData valued grid cells in any of the input images will be assigned NoData values in the output image.
36+ /// The output raster is of the float data type and continuous data scale.
37+ ///
38+ /// # See Also
39+ /// `D8Pointer`, `ElevationAboveStream`, `BreachDepressions`, `FillDepressions`, `Watershed`
1740pub struct DownslopeFlowpathLength {
1841 name : String ,
1942 description : String ,
0 commit comments