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_Tnappe = NULL,
  path_export,
  date_start_data,
  date_start = NULL,
  date_end = NULL,
  BV_names = NULL,
  Qunits = NULL,
  Tunits = 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_Tnappe

string Path to the text file containing underground water temperature of each watersheds. if NULL, the underground temperature data id not read and will need to be compute later.

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)

date_start

string or POSICxt Starting date to put in the result file.

date_end

string or POSICxt Ending date to put in the result file.

BV_names

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

Qunits

string Unit of the discharge data in the files path_Qcontributif, path_Qcum and path_Qnappe. If NULL, "same_as_EROS_file" is put in the NetCDF file

Tunits

string Unit of the Temperature data in the files path_Tnappe. 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'