ingest | R Documentation |
Ingests data for site scale simulations with rsofun (or any other Dynamic Vegetation Model).
ingest(
siteinfo,
source,
getvars = c(),
dir = NULL,
settings = NULL,
timescale = "d",
parallel = FALSE,
ncores = NULL,
find_closest = FALSE,
verbose = FALSE
)
siteinfo |
A data frame containing site meta info. Required columns are:
|
source |
A character used as identifiyer for the type of data source
(e.g., |
getvars |
A named list of characters specifying the variable names in
the source dataset corresponding to standard names |
dir |
A character specifying the directory where data is located. |
settings |
A list of additional settings used for reading original files. |
timescale |
A character or vector of characters, specifying the time scale of data used from the respective source (if multiple time scales are available, otherwise is disregarded). |
parallel |
A logical specifying whether ingest is run as parallel jobs
for each site. This option is only available for |
ncores |
An integer specifying the number of cores for parallel runs of
ingest per site. Required only if |
find_closest |
A logical specifying whether to extract data from the
closest gridcell with data if no data is available for the specified
location. Defaults to |
verbose |
if |
A named list of data frames (tibbles) containing input data for each site is returned.
## Not run:
inputdata <- prepare_input_sofun(
settings_input = settings_input,
settings_sims = settings_sims,
verwrite_climate = FALSE,
verbose = TRUE )
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.