Skip to contents

Write ensemble forecast dataframe to General Lake Model formatted csv files

Usage

write_glm_format(df, path)

Arguments

df

data frame output by get_ensemble_forecast()

path

directory where csv files will be written

Value

No return value, called to generate csv files in the GLM required format

Examples



file <- system.file("extdata", "test-data.csv", package="ropenmeteo")
df <- readr::read_csv(file, show_col_types = FALSE)
df |>
   add_longwave() |>
   write_glm_format(path = path)