Skip to content

Commit

Permalink
adding correct docs
Browse files Browse the repository at this point in the history
  • Loading branch information
khufkens committed Jun 25, 2024
1 parent 52e18d6 commit 3b485dd
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*).
Expand Down

0 comments on commit 3b485dd

Please sign in to comment.