Skip to contents

TNETshaped function needs to be launch each time you create a new river network. It’s created to be used with the french hydrological referenciel BD TOPAGE, but can possibly be used on other network.

Dependencies diagram

Here is a diagram with all functions inside of the TNETshape functions group. All function in this group are independent one to another but it was thinked to be used in this order.

Schema showing a diagram of all function in TNETshape functions set and how they interact between them

Functions details

All drain computation and needed TNET computation functions can be launch in the rigth order with the TNETshape_prepare() function

Compute drain area

Schema showing how confluences node are moved upstream in order to differenciate both segments during dainr area computation

Schema showing how the drain area of each segment is calculated

Compute needed TNET data

  • TNETshape_computeCoefQcalc() will compute all coeficients needed to dispatch discharge data from J2000 river network to Topage river network in order to run TNET_computeQ(). (More info can be found here)

  • TNETshape_getSafran() will intersect all segments with the SAFRAN grid in order to have all Safran ID to use for each segments.

  • TNETshape_computePosition() will get each segment position and orientation. Position is defined as the middle of the line between the initial and final node (in WGS84) and Orientation as the angle between North and the oriented line between the initial and final node.

Schema showing the position taken as the middle of the line between the initial and final node of a segment, and Orientation the angle beween North and the oriented line between the initial and final node

Removing drain Area problems

  • TNETshape_removePbDrainArea() will try to correct all drain area problems in the shapefile. (It’s possible that some problems could not be corrected). To see how every problem is corrected, see the function help. The function TNETdiagnostic_pbDrainArea() is used to identify all problems.