Skip to contents

This function will read all file created by EROS and put them in a NetCDF file to facilitate te use of it in future TnetRUI functions

Usage

TNET_readEROS(path_Qcontributif, path_Qcum, path_Qnappe, path_export, date_start_Data, BV_names = NULL, units = NULL)

Arguments

path_Qcontributif

strin Path to the text file containing the discharge created by each watersheds

path_Qcum

string Path to the text file containing discharge cumulated at the output of each watersheds

path_Qnappe

string Path to the text file containing underground discharge created by each watersheds

path_export

string Path to the folder wher the file EROS_DischargeData.nc will be created with the results

date_start_Data

string Date of the first day of the data (in the format %Y-%m-%d)

BV_names

vector Vector of IDs to assign each column of the data. if NULL, the names will be the column number.

units

string Unit of the data in the file, If NULL, "same_as_EROS_file" is put in the NetCDF file

Value

None

Examples

TNET_readEROS(path_Qcontributif = "path/to/Qcontributif.txt",
              path_Qcum = 'path/to/Qcum.txt',
              path_Qnappe = 'path/to/Qnappe.txt',
              path_export = "path/to/export/folder",
              date_start_Data = '1958-08-01') 
#> Error in fread(file = path_Qcontributif): File 'path/to/Qcontributif.txt' does not exist or is non-readable. getwd()=='/home/ghevin/Documents/T-NET/Code/TnetRUI/public/reference'