geotop.inpts file with the ones of anoter *.inpts valueR/replace.keyword.v0.R
replace.keyword.RdIt replaces some keyword values of geotop.inpts file with the ones of anoter *.inpts value
replace.keyword(
x,
y = "geotop.inpts",
file.output = NULL,
write.file.output = TRUE,
wpath = NULL,
...
)filename of the *.inpts with the "new" keyword value
filename of the *.inpts with the "old" keyword value. Default is "geotop.inpts".
filename where to write the comprehensive new geotop.inpts file. If it is NULL (default), the fileneme is assigned by y.
logical value. If it is TRUE, the output of the function is written in he file file.output.
working path to the GEOtop simulation folder containing the x and y files.
further arguments
This function repleces some keword values of y with the ones indicated in y. It is useful to replace the meteo station metedata, for instance, when the meteorological station of a study cases are modified.
The function returns the new geotop.inpts file as a vector of character strings. If write.file.output==TRUE, the output is written in an extarnal file, e.g. "geotop.inpts" newly (this option is suggested).
library(geotopbricks)
wpath <- system.file('template/meteo_ex',package="geotopbricks")
x <- "meteo.inpts"
zl <- replace.keyword(x,wpath=wpath,write.file.output=FALSE)
#> Warning: incomplete final line found on '/tmp/Rtmp3iVngj/temp_libpath3b12fd26bdcaeb/geotopbricks/template/meteo_ex/geotop.inpts'