Create the shapefile to be read by T-NET with good columns names
Arguments
- shapefile
Path to the shapefile with all segments info (see details for all column names)
- shapefileExport
Path where the resulting shapefile will be written
- columns_toKeep
Column to keep from the shapefile. These columns will not be use by T-NET, but can be useful in other function (as
TNET_modifyVeget()
)- hydro_model
Name of the hydrological model use in order to load the good column mapping file
Details
Columns mapping files are the same that the one used by TNETutils_checkShapefile()
. it's saved in the TnetRUI package in the folder extdata/Colnames_MODELS/
See also
For columns needed by T-NET, you can see the T-NET Wiki here: https://forgemia.inra.fr/guillaume.hevin/t-net/-/wikis/Configuration-file-tconf/shapefile, TNET_initializeSim()
, TNET_modifyVeget()
Examples
############################################################
## Using this function with TNET_initializeSim() function ##
############################################################
infoSimu <- TNET_initializeSim(...)
#> Error: '...' used in an incorrect context
TNET_createShape(shapefile = infoSimu$TOPAGE_shape,
shapefileExport = infoSimu$shapeName)
#> Error: object 'infoSimu' not found
# If a vegetation modification is needed
# TNET_modifyVeget(infoSimu$shapeName,...)