All TNET group function are made to read files from differents modelisations (SAFRAN, J2000, EROS, etc…), compute TNET needed data from them and save the result a format readable by T-NET (netCDF)
Dependencies diagram
Here is a diagram with all functions dependencies inside of the TNET functions group.
Functions details
All Meteological and Hydrological functions can be launch in the rigth order with the
TNET_prepareSim()
function
Read Meteological data (from SAFRAN)
TNET_readSAFRAN()
will read data from hourly NetCDF SAFRAN result (1 per year), extract cells needed by the user and put them into netCDF files (1 per variable)TNET_computeTnappe()
will compute the underground water temperature as the mean air temperature of the 365 days before.
Read Hydrological data (from J2000)
TNET_readJ2K()
will read output file from J2000 computation. It has to be used two times: one to read the ReachLoop.dat file (to extract discharge data) and another one to read HRUloop.dat file (to extract underground flow data).TNET_computeQ()
will dispatch discharge and underground data from J2000 river network to Topage river network using specific discharge hypothesis.TNET_computeHydraulic()
will compute rivers width, depth and water travel time on each Topage river segments using discharge and Estimkart formulasTNET_computeQlatSout()
will compute undergroud lateral discharge on every Topage river segment using J2000 underground flow and river depth and width.
Prepare shapefile
TNET_createShape()
will read the Topage river network shapefile, select all needed columns for TNET to run and put the good columns name.TNET_modifyVeget()
will modify Vegetation data in the shapefile if needed for different scenarios. The shapefile created has info of modification in it’s name in order to keep the modification in memory.
Run T-NET
-
TNET_run()
will create the configuration file needed by T-NET and execute the linux command line needed to run the computation.