TnetRUI is a R package to prepare all needed data in order to run T-NET.
Installation
The package can be installed using the following way:
remotes::install_gitlab(repo = 'guillaume.hevin/tnet_rui', host = 'forge.inrae.fr')It can be loaded using library(TnetRUI) as any other
package.
Dependances
TnetRUI will use the following packages:
data.tablefor data.frame computationqsandncdf4for file export and importlubridatefor all date manipulationstringrfor string manipulationsrlistfor list manipulationsffor shapefile manipulationrasterfor raster manipulationwhiteboxfor drain area computation
Whitebox specification
whitebox is used in the function
TNETshape_computeAreaDrain() and need some external
installation to work.
-
Download the whitebox binary
- The binary can be download on the whitebox website
-
Link the binary to the whitebox package
- The binary needs to be linked to the package using the following sentence
wbt_init(exe_path='/home/user/path/to/whitebox_tools')