merge_daymet: Merge Daymet data with a PhenoCam time series

View source: R/merge_daymet.r

merge_daymetR Documentation

Merge Daymet data with a PhenoCam time series

Description

Combine PhenoCam time series with matching climatological variables from Daymet.

Usage

merge_daymet(data, trim = FALSE, internal = TRUE, out_dir = tempdir())

Arguments

data

a PhenoCam data file or data structure

trim

logical, trim the daymet data to the length of the PhenoCam time series or include the whole Daymet time series (1980-current). (default = FALSE)

internal

return a data structure if given a file on disk (TRUE / FALSE = default)

out_dir

output directory where to store data (default = tempdir())

Value

A PhenoCam data structure or file which combines PhenoCam time series data with Daymet based climate values (columns will be added).

Examples


## Not run: 
# download demo data
download_phenocam(site = "harvard$",
                  veg_type = "DB",
                  roi_id = "1000",
                  frequency = "3")

# merge data with daymet data
merge_daymet(file.path(tempdir(),"harvard_DB_1000_3day.csv"))

## End(Not run)

bluegreen-labs/phenocamr documentation built on Feb. 6, 2024, 10:42 p.m.