Skip to contents

This function will execute all TNETshape function in order to prepare the river network for TNET computation.

Usage

TNETshape_prepare(path_segments, path_node, path_SafranGRID, path_DEM, export_file,...)

Arguments

path_segments

Path to the shapefile with segments to merge.

path_node

Path to the shapefile with all segments nodes.

path_SafranGRID

Path to the shapefile with all SAFRAN GRID IDs.

path_DEM

Path to the raster DEM used for drain area calculation.

export_file

Path to the shapefile with results to create.

...

All arguments to be past to other function. All arguments used are the following:

ArgumentsFunction using it
ID_specialTNETshape_computeAreaDrain()
to_calcTNETshape_computeCoefQcalc()
all other arguments will be ignored

Details

This function will execute all TNETshape function with all arguments and order as intended by the package author, in order to:

Just for clarification, all function in TNETshape functions are independante, so they can be launch in every order, not only in the order configure in this function.

See also

[TNETshape_computeAreaDrain()][TNETshape_computeCoefQcalc()][TNETshape_getSafran()][TNETshape_computePosition()]

Examples

## Run directly the function providing all info
TNETshape_prepare(path_segments = "path/to/segments.shp",
                  path_node = "path/to/nodes.shp",
                  path_SafranGRID = "path/to/SafranGRID.shp",
                  path_DEM = "path/to/DEM.tif",
                  export_file = "path/to/exportFolder")
#> Warning: cannot create dir 'path/to', reason 'No such file or directory'
#> Warning: cannot create dir 'path/to/tmp', reason 'No such file or directory'
#> Warning: cannot create dir 'path/to/tmp/tmp_wbt', reason 'No such file or directory'
#> Warning: GDAL Error 4: path/to/DEM.tif: No such file or directory
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'res': Cannot create a RasterLayer object from this file. (file does not exist)