phenology | R Documentation |
Calculate a phenology (or its subparts) with a specific model.
phenology(
.model,
.data = NULL,
.dates = NULL,
.win = NULL,
.ext = "tif",
.onset = NULL,
.diapause = NULL,
.mortality = NULL,
.submodels = c("onset", "diapause", "mortality", "development"),
.setup_only = FALSE,
.stations = NULL,
.storage = NULL,
.quiet = FALSE,
...
)
bso_phenology(
.model = "bso",
.data = NULL,
.dates = NULL,
.win = NULL,
.ext = "tif",
.onset = NULL,
.diapause = NULL,
.mortality = NULL,
.submodels = c("onset", "diapause", "mortality", "development"),
.setup_only = FALSE,
.stations = NULL,
.storage = NULL,
.quiet = FALSE,
...
)
.model |
A phenology model or a model name (see |
.data |
Data that will be passed to the model. It can be one of the following:
Look at the model application manuals to find out which inputs are required
by a specific model: |
.dates |
Vector of dates that the data should be restricted to. |
.win |
SpatExtent to set a window (area of interest) if |
.ext |
Extension of the files that should be used if |
.onset , .diapause , .mortality |
Pass custom or precalculated phenological
events to the model. See |
.submodels |
Character vector. Specifies which submodels should be
calculated. Can be a subset of
|
.setup_only |
If |
.stations |
Assign stations to the phenology. See |
.storage |
If set, the path specified here will be used to save the
(intermediate) results. If |
.quiet |
If |
... |
Parameters that will be passed to the model. Must be named according
to the model inputs. See |
A phenology as a list. Look here to find out how a phenology can be analysed. It is not recommended to access the list elements directly.
bso_phenology()
: As BSO works a bit different than the other models, a seperate
phenology function is implemented for this model. Note that while the
onset and the development submodels are needed to be taken from BSO,
the diapause and the mortality submodels are compatible with other models.
The function returns a BSO phenology as a list. Look here to find out how
a BSO phenology can be analysed. It is not recommended to access the list elements directly.
To be able to use the functions that are
available for phenology objects returned by phenology()
, call bso_translate_phenology()
.
model.bso.apply
, model.phenips.apply
, model.rity.apply
, model.chapy.apply
, model.joensson.apply
, model.lange.apply
, model.phenips_clim.apply
# calculate phenology
p <- phenology('phenips-clim', barrks_data())
# plot calculated generations
gens <- get_generations_rst(p)
terra::plot(gens)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.