
Write an AEME object to files
write_aeme_to_files.Rd
Write an AEME object to files
Examples
aeme_file <- system.file("extdata/aeme.rds", package = "AEME")
aeme <- readRDS(aeme_file)
path <- "test_write"
model_controls <- get_model_controls()
aeme <- build_aeme(path = path, aeme = aeme, model = "glm_aed",
model_controls = model_controls)
#> Building simulation for Wainamu [2025-02-19 07:03:07]
#> Using observed water level
#> Missing values in observed water level
#> Using constant water level
#> Correcting water balance using estimated outflows (method = 2).
#> Calculating lake level using lake depth and a sinisoidal function.
#> Warning: 'test_write\45819_wainamu' already exists
#> Building GLM3-AED2 model for lake wainamu
aeme <- run_aeme(aeme = aeme, model = "glm_aed", path = path)
#> Running models... (Have you tried parallelizing?) [2025-02-19 07:03:08]
#> GLM-AED running... [2025-02-19 07:03:08]
#> GLM-AED run successful! [2025-02-19 07:03:09]
#> Model run complete![2025-02-19 07:03:09]
#> Retrieving and formatting temp for model glm_aed
#> Retrieving and formatting salt for model glm_aed
write_aeme_to_files(aeme, path)