Write CENTURY weather file
write_weather.Rdwrite_weather takes an input data.frame containing weather data and writes a '*.wth' CENTURY
file on disk.
Usage
write_weather(
df,
pathname = pathname,
filename = filename,
overwrite = FALSE,
sep = " ",
ndigits = 6
)Arguments
- df
data.framecontaining weather data (precipitation, maximum and minimum temperature).- overwrite
logicalindicating whether to overwrite 'fileout' if it already exists on disk. Default is 'TRUE'.- sep
characterstring to separate columns by in 'fileout'. Default is an emptycharacterstring of length 7.- ndigits
numericindicating the number of decimal digits in output file. Default is 3.- fileout
characterstring with the name (without extension) of the weather file to be created.- wd
characterstring with the name of a valid directory to save the weather file. Default is the local folder.- verbose
logicalindicating whether to print out informative messages. Default is 'TRUE'.