Compute water flow on Topage segments network using EROS calculations
Source:R/TnetEROS.R
TnetEROS_computeQ.Rd
Extrapolate water flow calculated on EROS network on river segments of the Topage network using specific flow hypothesis.
Details
Before using this function, all Topage segments must have been linked to a J2000 segment. Furthermore, TNETshape_computeCoefQcalc()
must be
execute before in order to have the rignt ratios in order to dispatch discharge data on Topage network
Water flow on each Topage segment will be calculated using the following formulas:
\(RppAr\_v\) and \(air\_strNFS\) can be calculate with the function TNETshape_computeCoefQcalc()
Calculate Downstream flow (\(Q_{\text{aval}}\))
$$Q_{\text{aval}} = Q_{\text{contributif}} \cdot \text{air_strNFS} + \sum_{BV_{\text{amont}}}(Q_{\text{cum}})$$
where: \(air\_strNFS = \frac{\text{Length of all upstream segments in the sub-watershed} + \text{Length of the segment}}{\text{Sum of all segments length in the sub-Watershed}}\)
Columns needed in the shapefile
\(OBJECTID\_1\) | ID of the Topage segment |
\(BV\) | ID of the EROS watershed of the segment |
\(air\_strNFS\) | The fraction of the downstream of the segment to dispatch BV contributif discharge (see deails section). |
\(bv\_amont1\) | EROS watershed n°1 uptstream of the segments. |
\(bv\_amont2\) | EROS watershed n°2 uptstream of the segments. |
\(bv\_amont3\) | EROS watershed n°3 uptstream of the segments. |
\(bv\_amont4\) | EROS watershed n°4 uptstream of the segments. |
\(bv\_amont5\) | EROS watershed n°5 uptstream of the segments. |
\(bv\_amont6\) | EROS watershed n°6 uptstream of the segments. |
\(bv\_amont7\) | EROS watershed n°7 uptstream of the segments. |
\(bv\_amont8\) | EROS watershed n°8 uptstream of the segments. |
Examples
TnetEROS_computeQ(path_data = "path/to/data",
path_export = "path/export/folder",
shapefile = "path/to/shapefile.shp")
#> ⠙ Computing discharge data (Q): Preparing computations
#> Error: Cannot open "path/to/shapefile.shp"; The file doesn't seem to exist.
#> ✖ Computing discharge data (Q): Preparing computations [8ms]
#>
############################################################
## Using this function with TNET_initializeSim() function ##
############################################################
infoSimu <- TNET_initializeSim(...)
#> Error: '...' used in an incorrect context
TnetEROS_readfiles(...) #Read EROS files
#> Error: '...' used in an incorrect context
TnetEROS_computeQ(path_data = infoSimu$path_Export_tmp,
path_export = infoSimu$hydroPath,
shapefile = infoSimu$TOPAGE_shape)
#> Error: object 'infoSimu' not found