Set time parameters for an Aeme object
Arguments
- aeme
Aeme object.
- start, stop
Time in the format "YYYY-mm-dd" or "YYYY-mm-dd HH:MM" or "YYYY-mm-dd HH:MM:SS". Interpreted as wall-clock time in the object's timezone (
time(aeme)$tz, ortzif supplied here) and stored as UTC.- spin_up
Spin-up time in days. Can be a single numeric value or a list with model names as names and numeric values as values.
- time_step
numeric; model integration time step in seconds. Default (when unset on the object) 3600.
- output_time_step
numeric; model output time step in seconds. Must be greater than or equal to
time_step. Default (when unset on the object) 86400 (daily). Set to e.g. 3600 for hourly output. Note that AEME does not temporally disaggregate forcing: sub-daily output requires forcing supplied at (at least) the same cadence.- output_daily_mean
logical; if
TRUE, every model additionally produces a daily-mean output stream alongside its rawoutput_time_stepoutput. Default (when unset on the object)FALSE. Seeset_output_time_step.- tz
character; Olson timezone in which user-supplied timestamps (here and in the forcing/observation inputs) are expressed. Stored on the object as
time$tzand used to convert those timestamps to UTC internally and for display. If omitted, the object's existingtime$tzis kept.
Examples
aeme_file <- system.file("extdata/aeme.rds", package = "AEME")
aeme <- readRDS(aeme_file)
aeme <- set_time(aeme = aeme, start = "2020-01-01", stop = "2020-12-31",
spin_up = 35)
