pr_fm_phenocam: Format PhenoCam data

View source: R/pr_fm_phenocam.R

pr_fm_phenocamR Documentation

Format PhenoCam data

Description

Preprocessing of all PhenoCam data into a format which can be ingested by the optimization routines etc. the original nested list is flattened for speed.

Usage

pr_fm_phenocam(
  path = tempdir(),
  direction = "rising",
  gcc_value = "gcc_90",
  threshold = 50,
  offset = 264,
  spread = 30,
  internal = TRUE
)

Arguments

path

a path to 1 or 3-day PhenoCam transition date estimates (no validation checks will be done, so mixed files will lead to mixed or duplicated results!)

direction

The phenophase considered, "rising" for spring and "falling" for autumn. When using fall the offset should be 365. (default = rising)

gcc_value

The gcc time series from which the phenophase estimates were derived either (default = gcc_90)

threshold

Threshold ( the phenophases (10, 25, 50) (default = 50)

offset

offset of the time series in DOY (default = 264, sept 21)

spread

maximum distance between CI of phenophase (default = 30) increase this value to include more uncertain phenophase estimates

internal

return data as structured list to R workspace or write to RDS file (default = TRUE)

Details

In addition to the normal transition dates the offset in julian days to the previous phenophase is included as transition_dates_prior.

Examples


# run with default settings
# looks for transition date files derived
# through phenocamr in your home directory
# change the path to match your setup
## Not run: 
phenocam_data = pr_fm_phenocam()

## End(Not run)

bluegreen-labs/phenor documentation built on Sept. 2, 2023, 10:34 a.m.