This function will detect and saved segments with potentially invalid drain area. Weird drain area are determined with the following:
If downstream segments are smaller than upstream ones.
If downstream segments are much bigger than the upstream one.
Examples
## Run directly the function providing all info
TNETshape_computeCoefQcalc(path_segments = "path/to/segments.shp",
path_areaDrain = "path/to/drainedArea.shp",
export_file = "path/to/exportFolder")
#> Error in TNETshape_computeCoefQcalc(path_segments = "path/to/segments.shp", path_areaDrain = "path/to/drainedArea.shp", export_file = "path/to/exportFolder"): unused argument (path_areaDrain = "path/to/drainedArea.shp")