Write CENTURY weather file
write_weather.Rd
write_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.frame
containing weather data (precipitation, maximum and minimum temperature).- overwrite
logical
indicating whether to overwrite 'fileout' if it already exists on disk. Default is 'TRUE'.- sep
character
string to separate columns by in 'fileout'. Default is an emptycharacter
string of length 7.- ndigits
numeric
indicating the number of decimal digits in output file. Default is 3.- fileout
character
string with the name (without extension) of the weather file to be created.- wd
character
string with the name of a valid directory to save the weather file. Default is the local folder.- verbose
logical
indicating whether to print out informative messages. Default is 'TRUE'.