Skip to contents

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 computation

  • qs and ncdf4 for file export and import

  • lubridate for all date manipulation

  • stringr for string manipulations

  • rlist for list manipulation

  • sf for shapefile manipulation

  • raster for raster manipulation

  • whitebox for drain area computation

Whitebox specification

whitebox is used in the function TNETshape_computeAreaDrain() and need some external installation to work.

  1. Download the whitebox binary

  2. 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')