https://github.com/aariq/efi-2022-phenocam
Phenocam forecasting challenge done as part of the NEFI short course in 2020 https://ecoforecast.org/nefi2022/
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: sciencedirect.com -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.9%) to scientific vocabulary
Keywords
bayesian-models
ecological-modelling
forecasting
forecasting-models
Last synced: 5 months ago
·
JSON representation
Repository
Phenocam forecasting challenge done as part of the NEFI short course in 2020 https://ecoforecast.org/nefi2022/
Statistics
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 4
- Releases: 0
Topics
bayesian-models
ecological-modelling
forecasting
forecasting-models
Created over 3 years ago
· Last pushed over 3 years ago
Metadata Files
Readme
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
library(targets)
```
# Phenocam Forecast for NEFI summer course 2022
Team:
- [Eric Scott](https://github.com/Aariq)
- [Yiluan Song](https://github.com/yiluansong)
- [Ross Alexander](https://github.com/alexanderm10)
- [Jussi Mäkinen](https://github.com/jusmak)
# Background
Phenocams take automated daily photos of sites like this:
Then photos are converted to values of greenness and redness. These data can be used to forecast date of spring leaf-out or fall color change.
## Challenge
- Predict greenness 35 days ahead from the current day (fixed to early February 2022)
- Observations start 2016
### 18 study sites in total
- 10 deciduous, 6 grassland, 2 shrubland
```{r echo=FALSE}
tar_read(ts_plot)
```
([More data exploration](docs/EDA.md))
## Problems
- account for the between-sites variation in temporal patterns and in response to climate
- easy access only to most recent climate data, constrained analysis to 2020->
## Forecasting uncertainty
- model uncertainty
- climate forecast uncertainty (different forecast ensembles)
# Model structure
- https://www.sciencedirect.com/science/article/abs/pii/S0034425720303266
Data model
$$GCC_{t, s} \sim N (X_{t, s}, \tau_{o, GCC})$$
$$EVI_{t, s} \sim N (X_{t, s}, \tau_{o, EVI})$$
Process model
$$X_{t, s} \sim N(X_{t-1, s}+ \beta_{s} T_{t, s} + \mu_{s},\tau_{a})$$
$$X_{t, s} \sim N(X_{t-1, s}+ \beta T_{t, s},\tau_{a})$$
$$X_{t, s} \sim N(X_{t-1, s},\tau_{a})$$
Priors
$$X_{1, s} \sim N (mu_{IC, s}, \tau_{IC, s})$$
$$\tau_{o, GCC} \sim Gamma(a_{o, GCC},r_{o, GCC})$$
$$\tau_{o, EVI} \sim Gamma(a_{o, EVI},r_{o, EVI})$$
$$\tau_{a} \sim Gamma(a_a,r_a)$$
### JAGS code:
```{r echo=FALSE, render='asis', comment=''}
cat(tar_read(RandomWalk))
```
# Forecasts
1) Prepare new data for assimilation
2) Load posterior as prior/ initialize uninformative prior
3) Set initial conditions
4) Configure model
5) Fit model (and forecast)
6) Model assessment
7) Summarize posteriors with hyperparameters (save hyperparameters)
8) Combine previous data with forecast (save data)
9) Visualize (save plots)
Some examples
- [2020-11-24](https://github.com/Aariq/efi-2022-phenocam/blob/main/forecasts/2020-11-24/plot.pdf)
- [2021-07-22](https://github.com/Aariq/efi-2022-phenocam/blob/main/forecasts/2021-07-22/plot.pdf)
- [2022-05-18](https://github.com/Aariq/efi-2022-phenocam/blob/main/forecasts/2022-05-18/plot.pdf)
### `targets` workflow:
```{r echo=FALSE, message=FALSE, warning=FALSE, results='asis'}
cat(
"```mermaid",
targets::tar_mermaid(targets_only = TRUE, reporter = "silent"),
"```",
sep = "\n"
)
#this should display correctly on GitHub, or code can be pasted into https://mermaid.live
```
# Resources for Challenge
- [challenge docs](https://projects.ecoforecast.org/neon4cast-docs/theme-phenology.html)
- [phenocam](https://phenocam.sr.unh.edu/webcam/)
gcc data is here:
```r
gcc_dat <-
readr::read_csv(
"https://data.ecoforecast.org/targets/phenology/phenology-targets.csv.gz",
guess_max = 1e6
)
```
site metadata is here:
```r
site_data <-
readr::read_csv(
"https://raw.githubusercontent.com/eco4cast/neon4cast-phenology/master/Phenology_NEON_Field_Site_Metadata_20210928.csv"
)
```
# Repo structure
- `data/` put raw data here
- `R/` put R functions to be `source()`ed here
- `docs/` put .Rmd files to be rendered here
Owner
- Name: Eric R. Scott
- Login: Aariq
- Kind: user
- Company: University of Arizona, @cct-datascience
- Website: www.ericrscott.com
- Twitter: leafyericscott
- Repositories: 125
- Profile: https://github.com/Aariq
Scientific Programmer & Educator at University of Arizona
GitHub Events
Total
Last Year
Committers
Last synced: 11 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Eric R. Scott | s****r@g****m | 43 |
| yiluansong | y****g@g****m | 12 |
| Jussi Mäkinen | j****n@g****m | 6 |
| Ross Alexander | m****0@g****m | 5 |
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 6
- Total pull requests: 18
- Average time to close issues: 1 day
- Average time to close pull requests: 5 days
- Total issue authors: 1
- Total pull request authors: 3
- Average comments per issue: 0.17
- Average comments per pull request: 0.11
- Merged pull requests: 17
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- Aariq (6)
Pull Request Authors
- yiluansong (10)
- Aariq (5)
- alexanderm10 (3)