From 3b485dd4402a2aa138384636cb7e573f3ee648f7 Mon Sep 17 00:00:00 2001 From: KH Date: Tue, 25 Jun 2024 09:22:17 +0200 Subject: [PATCH] adding correct docs --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8bb534b..c435275 100644 --- a/README.md +++ b/README.md @@ -56,13 +56,18 @@ Example code below shows that in few lines a modelling exercise can be set up. Y ```R # The command below downloads all time series for deciduous broadleaf # data at the bartlett PhenoCam site and estimates the -# phenophases. -pr_dl_phenocam(vegetation = "DB", - site = "bartlett", - phenophase = TRUE) +# phenophases. By default data are downloaded into tempdir() (the +# temporary directory) +library(phenocamr) +phenocamr::download_phenocam( + veg_type = "DB", + roi_id = "1000", + site = "bartlett", + phenophase = TRUE + ) # process phenocam transition files into a consistent format -phenocam_data <- pr_fm_phenocam("/foo/bar/transition_dates/") +phenocam_data <- pr_fm_phenocam(tempdir()) ``` Alternatively you can use the included data which consists of 370 site years of deciduous broadleaf forest sites as included in PhenoCam 1.0 dataset (Richardson et al. 2017) precompiled with Daymet climate variables. The file is loaded using a standard **data()** call or reference them directly (e.g. *phenocam_DB*).