View source: R/calc_timestep2time.R
| calc_timestep2time | R Documentation |
Converts timestep from Atlantis output to real time
calc_timestep2time(dir = getwd(), data, file_runprm)
dir |
The directory of the atlantis model output, where the
default is |
data |
A data frame of Atlantis output. Where the data frame can be
of any structure as long as it has a column with the name |
file_runprm |
A character value giving the file name of the biology
|
Atlantis output uses time steps, where time steps are sequential
and start at zero. convert_time converts the time step to dates,
where zero is January 01, 1970.
A data.frame in tidy format with a column date showing
the real date and year showing the real year.
If there is not column "time" in the data.frame specified
for the data, then the original data.frame
is returned.
Alexander Keth
load_fgs
Other calc functions:
calc_Z(),
calc_age2length(),
calc_avgwtstage2age(),
calc_biomass_age(),
calc_biomass_pool(),
calc_pred_cons(),
calc_pred_diet(),
calc_stage2age()
d <- system.file("extdata", "SETAS_Example", package = "atlantisom")
load(file = file.path(d, "outputsrun_truth.RData"))
test <- calc_timestep2time(dir = d, data = result$biomass_ages,
file_runprm = "Run_settings.xml")
rm(test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.