save_phenology | R Documentation |
Saves/loads a phenology to/from a path.
save_phenology(
pheno,
.storage,
.submodels = c("onset", "diapause", "mortality", "development"),
.overwrite = FALSE,
.ext = ".tif",
.quiet = FALSE
)
load_phenology(
.storage,
.submodels = c("onset", "diapause", "mortality", "development"),
.ext = ".tif",
.quiet = FALSE
)
pheno |
A phenology, calculated with |
.storage |
Path to save/load the phenology. |
.submodels |
Which submodels should be saved/loaded. |
.overwrite |
Should an existing storage be overwritten? |
.ext |
Extension for raster files. |
.quiet |
If |
save_phenology()
: None
load_phenology()
: 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.
save_phenology()
: Saves a phenology to a path.
load_phenology()
: Loads a phenology from a path.
# calculate phenology
p <- phenology('phenips-clim', barrks_data(), .quiet = TRUE)
# choose path to save the phenology
path <- file.path(tempdir(), 'pheno')
# save phenology
save_phenology(p, path, .overwrite = TRUE, .quiet = TRUE)
###
# load phenology from path
p2 <- load_phenology(path, .quiet = TRUE)
# plot generations
gens <- get_generations_rst(p2)
terra::plot(gens)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.