Skip to contents

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.

Usage

TNETdiagnostic_pbDrainArea(shapefile,threshold = 0.4, quiet = FALSE)

Arguments

shapefile

Path to the shapefile with segments.

threshold

0,1 Threshold beyond which the ratio of drained area to upstream drained area is considered invalid.

quiet

if FALSE, results a display and saved in a file. If TRUE result are return in a variable.

Value

Segment with potentially invalid area drained as data.frame or file

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")