pr_predict: Predicts phenophases

View source: R/pr_predict.R

pr_predictR Documentation

Predicts phenophases

Description

Uses a given set of parameters and a specified model (be sure to match parameter and requirements with the model. Wrapper around a do.call() call for convenience.

Usage

pr_predict(par, data, model = "TT", path = ".", reproject = TRUE, ...)

Arguments

par

a vector of parameter values, this is functions specific

data

a nested list of data formatted using one of the format_*() functions

model

the model name to be used in optimizing the model

path

the path to daymet tile data formated using the format_daymet() function. All tiles in this directory will be processed with the specified model and data mosaicked and reprojected if requested

reproject

TRUE / FALSE, reproject to lat-lon (default = TRUE)

...

extra arguments to pass to the function

Value

returns point based or gridded estimates of a particular phenopase

Examples


## Not run: 
# estimate will be an estimated timing of a phenophase
estimate <- pr_predict(par, data, model)

# if a path is specified and no other data all tiled
# data in this directory will be processed into a map
# if a dataset is provided at the data parameter side
# only this particular tile will be processed.


## End(Not run)

khufkens/phenor documentation built on Aug. 31, 2023, 1:24 a.m.