Try guessing starting parameters for model_params and model_ndvi.
model_start(DT, id = "id", year = "yr")
filtered and scaled data.table of NDVI time series. Expects columns 'scaled' and 't' are present.
id column. default is 'id'. See details.
year column name. default is 'yr'.
The input DT data.table
appended with xmidS_start
and xmidA_start
columns. Note - we curently do not attempt to guess appropriate starting values for scalS
and scalA
.
The id argument is used to split between sampling units. This may be a point id, polygon id, pixel id, etc. depending on your analysis. This should match the id provided to filtering functions.
Other model:
model_ndvi()
,
model_params()
# NOT RUN {
# Load data.table
library(data.table)
# Read in example data
ndvi <- fread(system.file("extdata", "sampled-ndvi-MODIS-MOD13Q1.csv", package = "irg"))
# Filter and scale NDVI time series
filter_ndvi(ndvi)
scale_doy(ndvi)
scale_ndvi(ndvi)
# Guess starting parameters for xmidS and xmidA
model_start(ndvi)
# }
Run the code above in your browser using DataLab