Estimate the underground water temperature as the mean of the air temperature in the 365 days before. This function use igraph::running_mean()
to calculate running mean.
Arguments
- path_data
Path to the folder containing air temperature "Tair.nc" created by
TNET_readSafran()
- path_export
Path to the folder to export the file "Tg.nc". If
NULL
,path_export = path_data
.- shapefile
Path to the shapefile with all info on segments. See
TNETutils_getSAFRAN_fromShape()
for all mandatory columns.
Details
The underground temperature of each river segment is set as the underground temperature of the sub watershed in witch there are. The data of
the underground temperature of each sub-watershed is provided in a text file and read by the TNET_readEROS()
function.
Examples
TnetEROS_computeTg(path_data = path/to/data,
path_export = path/to/export/folder,
shapefile = path/to/shapefile.shp)
#> Error: object 'to' not found
############################################################
## Using this function with TNET_initializeSim() function ##
############################################################
infoSimu <- TNET_initializeSim(...)
#> Error: '...' used in an incorrect context
TNET_readSafran(...)
#> Error in TNET_readSafran(...): could not find function "TNET_readSafran"
TnetEROS_computeTg(path_data = infoSimu$safranPath,
path_export = infoSimu$hydroPath,
shapefile = infoSimu$TOPAGE_shape)
#> Error: object 'infoSimu' not found