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
.
Usage
write_swap_meteo(
project_path,
data,
export = TRUE,
name = NULL,
autoset = FALSE,
swap_file = "swap.swp",
verbose = TRUE
)
Arguments
- project_path
Path to project directory (string)
- data
dataframe with SWAP meteo data as loaded by
load_swap_meteo()
- export
(optional) flag, should the data be written to SWAP format?
- name
(optional) string, desired name of the meteo file.
- autoset
(optional) flag, automatically adjusts SWAP project with the start and end times of the provided data, as well as the metfile name.
- swap_file
(optional) name of the swap file to modify (swap.swp by default)
- verbose
(flag) print actions to console?
Details
Writes a / the SWAP meteo dataframe as loaded by load_swap_meteo()