This function writes the provided dataframe back into the rswap template
csv file, and optionally also exports the data into a SWAP compatible format
(.met). Additionally, one can automatically update the parameters TSTART
,
TEND
and METFIL
by setting autoset = TRUE
.
write_swap_meteo(
project_path,
data,
export = TRUE,
name = NULL,
autoset = FALSE,
swap_file = "swap.swp",
verbose = TRUE
)
Path to project directory (string)
dataframe with SWAP meteo data as loaded by load_swap_meteo()
(optional) flag, should the data be written to SWAP format?
(optional) string, desired name of the meteo file.
(optional) flag, automatically adjusts SWAP project with the start and end times of the provided data, as well as the metfile name.
(optional) name of the swap file to modify (swap.swp by default)
(flag) print actions to console?
path to where the met file was written.
Writes a / the SWAP meteo dataframe as loaded by load_swap_meteo()
#tbc