Compute length of all upstream segments
Source:R/TNETshape_computeUpstreamLength.R
TNETshape_computeUpstreamLength.RdThis function will compute all segments upstream length at the initial and final node and save the result in a shapefile
Arguments
- path_segments
Path to the shapefile with all segments
- export_file
Path to the shapefile with the results. if NULL, the result is paste as a variable.
- inBV
bool if
TRUE, segments are cut into sub watershed before computation (needs aBVcolumn with all sub watershed of each segments in thepath_segmentshapefile). IfFALSE, all the shapefile is used
Details
Columns created
If inBV = TRUE, the columns created in the result shapefile are LUpI_sBV (length upstream at the initial node) and LUpF_sBV (length upstream at the final node)
If inBV = FALSE, the columns created in the result shapefile are LUpI (length upstream at the initial node) and LUpF (length upstream at the final node)