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.table
for data.frame computationqs
andncdf4
for file export and importlubridate
for all date manipulationstringr
for string manipulationsrlist
for list manipulationsf
for shapefile manipulationraster
for raster manipulationwhitebox
for 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')