Skip to contents

Write an AEME object to files

Usage

write_aeme_to_files(aeme, path, include_output = FALSE)

Arguments

aeme

aeme; object.

path

filepath; where input files are located relative to the current working directory.

include_output

logical, include output files. Default is FALSE. The output files can be large and take up a lot of space.

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)
#>  Using observed water level
#>  No missing values in observed water level. Using observed water level
#>  Correcting water balance using estimated outflows (method = 2).
#>  Calculating lake level using lake depth and a sinisoidal function.
#>  Building GLM-AED2 for lake wainamu
#>  GLM nml validation completed - no issues detected.
aeme <- run_aeme(aeme = aeme, model = "glm_aed", path = path)
#>  Running models... (Have you tried parallelizing?) [2026-02-05 00:00:25]
#> → GLM-AED running... [2026-02-05 00:00:25]
#>  GLM-AED run successful! [2026-02-05 00:00:25]
#>  Model run complete! [2026-02-05 00:00:25]
write_aeme_to_files(aeme, path)