The package is made to read and set input parameters and meteorology of the ARCHIMED model, to execute, import the outputs and analyse them.
To install archimedR, simply execute the following lines of code:
# install.packages("remotes")
remotes::install_github("VEZY/archimedR")
You can read the parameter values from the configuration file using
read_config
:
read_config(file = "Archimed/app_parameters/ArchimedConfiguration.properties",
parameter = c("latit","altitude"))
To read the meteo file:
import_meteo("output/meteo.csv")
To run ARCHIMED from R, you can use this command:
run_archimed(exe = "archimed.jar", memory = 4096, config= "app.parameters")
The memory argument allocate some space from the RAM to the JVM (Java Virtual Machine). Make sure to have enough RAM on your computer, and to set enough RAM for the simulation.
Two models outputs are available:
nodes_values.csv
file. To read it, use this command:read_out_node(path= "output/nodes_values.csv")
mirdata.xlsx
file:read_out_plot(path= "output/mirdata.xlsx", sheet= "Mir")
This package is still under active development, as for the ARCHIMED model. Although we try to keep the functions calls and outputs consistants between versions, the function calls may change over time.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.