extractParameters: Extract fitting parameters from a pixel-based analysis

Description Usage Arguments Details Author(s)

View source: R/extractParameters.R

Description

This function allows to extract fitting parameters from pixel-based analysis of a seasonal ensemble of images in one or multiple rois.

Usage

1

Arguments

list

A list as in output from spatialGreen.

update

One between 'trs', 'derivatives', 'klosterman', 'gu' or NULL (the default). See update from this package for further details.

...

Further arguments to the update function. Currently, you can specify a trs argument for update method trs for specific thresholds. See PhenoExtract for further details.

Details

This function allows to extract curve parameters and thresholds from pixel based analyisis. Depending on how you have run spatialGreen function, extractParameters behaves differently (but returns the same results!). In case you haven't saved each pixel's fit with spatialGreen (i.e., with save == FALSE and assign == TRUE), this function will extract parameters from a list as in output from spatialGreen. IN case you HAVE saved each pixel's fit (i.e. save == TRUE in function spatialGreen) extractParameters loads recursively in a folder (path) and builds a data.frame with extracted curve parameters and thresholds. In both cases a data.frame is returned, with all curve parameters and thresholds for each pixel (one row for each pixel). Additionally, RMSE (root mean square error) for each fitting is computed and returned as well. The dataframe in output is suitable to be passed to the function plotSpatial.

Author(s)

Gianluca Filippa <gian.filippa@gmail.com>


gianlucafilippa/phenopix documentation built on Nov. 4, 2019, 1:06 p.m.