Skip to contents

General functions

Functions needed to organise your modelisation and create all needed files for T-NET

TNET_createShape()
Create Shapefile for TNET
TNET_createTconf()
Create the configuration file (tconf) readen by T-NET
TNET_initializeSim()
Initialize All info needed by TnetRUI package
TNET_run()
Run T-NET
TNET_checkShapefile() TNETshape_checkShapefile() TNETutils_checkShapefile()
Check if the shapefile has the needed columns to run functions in TnetRUI package

Hydrological models functions

Functions to prepare and read data from all compatible hydrological models

J2000

TnetJ2K_computeQ()
Compute water flow on Topage segments network using J2000 calculations
TnetJ2K_computeQlatSout()
Compute underground water flow data from J2000 used by T-NET
TnetJ2K_computeTg()
Estimate undergroud water temperature
TnetJ2K_readDatHeader()
Read information in the header of a J2K .dat file
TnetJ2K_readfiles()
Read ReachLoop.dat or HRULoop.dat file created by J2000

EROS

TnetEROS_computeQ()
Compute water flow on Topage segments network using EROS calculations
TnetEROS_computeQamt()
Compute Upstream water flow on Topage segments network using J2000 calculations
TnetEROS_computeQlatSout()
Compute underground water flow data from EROS used by T-NET
TnetEROS_computeTg()
Estimate undergroud water temperature
TnetEROS_readfiles()
Read all 3 files created by EROS and put them in one NetCDF file

Meteorological models functions

Functions to prepare and read data from all compatible meteorological models

SAFRAN

TnetSAFRAN_getInfoFromShape()
Get all SAFRAN grid ID info from shapefile
TnetSAFRAN_readfilesNetCDF()
Reading meteorological data from SAFRAN NetCDF files

Hydraulic Computations

Functions to compute hydraulic using different equations

TnetHydraulic_LoireStyle()
Compute all hydraulic data from Q for EROS hydrological data on Loire Watershed
TnetHydraulic_ManningStrickler()
Compute all hydraulic data using Manning-Strickler equations
TnetHydraulic_MorelNew()
Compute all hydraulic data using new Morel equations
TnetHydraulic_MorelNewRec()
Compute all hydraulic data using recalibrate new Morel equations
TnetHydraulic_MorelOld()
Compute all hydraulic data using Old Morel equations

Reading results

Functions to exploit all data files created by TnetRUI and TNET

TNETresult_compare()
Compare 2 NetCDF files created by T-NET on a periode of time
TNETresult_history()
Read all function used to create a TnetRUI NetCDF file
TNETresult_info()
Print information on data in a NetCDF file
TNETresult_read()
Reading data in NetCDF files created by T-NET
TNETresult_readDataPaper()
Read NetCDF files from TNET Loire Data paper
TNETresult_readShape()
Read the shapefile saved in TnetRUI NetCDF results files

Playing with vegetation

Function to play with vegetation without losing info on modifications

TNETveget_modify()
Modify vegetation density and heights on segments
TNETveget_replace()
Replace the vegetation data by another one

Creating part of the shapefile

Functions to create the river network to use for TNET and some needed data

TNETshape_computeAreaDrain()
Compute Drain area using WhiteBox
TNETshape_computeCoefQcalc()
Assign a coefficients to dispatch J2000 discharge on TOPAGE segments
TNETshape_computeNdAreaDrain()
Create accurate nodes for Drain area calculation
TNETshape_computePosition()
Compute segment coordinates and orientations
TNETshape_computeUpstreamLength()
Compute length of all upstream segments
TNETshape_cutSegments()
Cut segment into sub-segment with a specific length
TNETshape_getSafran()
Assign a SAFRAN IDs to segments
TNETshape_mergeSegments()
Merging all river segments between confluences
TNETshape_prepare()
Use all TNETshape function
TNETshape_removePbDrainArea()
Remove segments with weird area drain
TNET_checkShapefile() TNETshape_checkShapefile() TNETutils_checkShapefile()
Check if the shapefile has the needed columns to run functions in TnetRUI package

Divers function

Some useful function to have when using TnetRUI and TNET

TNETutils_appendNetCDF()
Append data to a TNET NetCDF
TNET_checkShapefile() TNETshape_checkShapefile() TNETutils_checkShapefile()
Check if the shapefile has the needed columns to run functions in TnetRUI package
TNETutils_computeQlatAll()
Compute lateral flow for all segments
TNETutils_createNetCDF()
Create NetCDF file for TnetRUI and TNET results
TNETutils_findUpstreamSegment()
Find all segments ID upstream of a given segment
TNETutils_getLongProfile()
Create Longitudinal profile for TNET computation
TNETutils_getLongProfileConfluence()
Easely extract confluences for plot
TNETutils_getShape_fromNETCDF()
Read Shape used by TNET to run
TNETutils_openExempleData()
Download and get path to examples files
TNETdiagnostic_pbDrainArea()
Detect potentially invalid drained area