1. APIS Proposal
  2. greenwave
R package for fitting the greenwave model to time series of vegetation indices.

Source

Raw file

greenwave

R package for fitting the greenwave model to time series of vegetation indices

Installation

You can install the development version of greenwave with:

devtools::install_gitlab("apis-staging/greenwave")

Usage

For deploymenet in non-interactive settings, batch runs, automated testing of various parameterizations, CI / CD etc. see the Greenwave Command Line Tool:

Rscript demo/gw-cli.R --help
Rscript demo/gw-sim.R --incl_sim_opts --n_locs 8

Note that we have repurposed the demo directory for internal use, including simulation, conceptual diagrams, DAGs, etc. We make unapologetic use of some of the package's internal functions, and point would-be users instead to the vignettes.

Abbreviations

The following abbreviations (including their invocation as prefixes / suffixes) are used throughout the package.

AbbreviationShort forDefinition / example
nnumberThe number of years, n_years
gwgreenwaveprefix for all functions exported by the package
rerandom effects
sfscaling factors
sd / sdsstandard deviation(s)
idIDalphanumeric identifier
idxindexsequential integer
loclocation
optsoptions
calcalendarUsed exclusively to distinguish between calendar (e.g., 1984, 1985, ..., 2002) and relative years (0, 1, ..., 18)
inclinclude
exclexcludeexcl_param

Licensing and attribution

All material housed in this repository is licensed under the GPLv3 license expect for the data-raw/figures directory, whose contents are licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 license. When making use of those figures please link to this repository and note that the copyright is held by Conservation Science Partners, Inc.

Add shortcut

Everything looks good. We'll let you know here if there's anything you should know about.