emma_envdata

Environmental data processing for www.emma.eco

https://github.com/adamwilsonlab/emma_envdata

Science Score: 46.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    1 of 4 committers (25.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.8%) to scientific vocabulary
Last synced: 7 months ago · JSON representation

Repository

Environmental data processing for www.emma.eco

Basic Info
  • Host: GitHub
  • Owner: AdamWilsonLab
  • License: other
  • Language: R
  • Default Branch: main
  • Homepage:
  • Size: 75.3 MB
Statistics
  • Stars: 9
  • Watchers: 3
  • Forks: 3
  • Open Issues: 0
  • Releases: 0
Created over 4 years ago · Last pushed 7 months ago
Metadata Files
Readme License

README.Rmd

---
output: github_document
editor_options: 
  chunk_output_type: console
---

```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(tidyverse)
```

![EMMA](img/EMMA Logo_RE_3.jpg)

# Ecological Monitoring and Management Application (EMMA)

This is the core repository for environmental data processing in the Ecological Monitoring and Management Application [EMMA.io](EMMA.io).

## File structure

The most important files are:

```{r, eval = FALSE}
├── _targets.R (data processing workflow and dependency management)
├── R/
├──── [data_processing_functions]
├── data/
├──── manual_download (files behind firewalls that must be manually downloaded)
├──── raw_data (raw data files downloaded by the workflow)
├──── processed_data (data processed and stored by the workflow)
└── Readme.Rmd (this file)
```

Files generated by the workflow are stored in the targets-runs branch.  The final output of the workflow is a set of parquet files stored as Github releases with the tag "current".

# Workflow structure

```{r, echo=F, results="hide"}
targets::tar_glimpse() %>% 
  htmlwidgets::saveWidget(file = "img/network.html")
#webshot::install_phantomjs()
webshot::webshot("img/network.html", "img/network.png")
```

# Workflow Notes

## Runtime and frequency
Github places some constrains on actions, including memory limits and run time limits.  To prevent this workflow from taking too long to run (and thereby losing all progress), there are a few key parameters that can be changed. In the _targets.R file, the argument "max_layers" controls the maximum number of layers that rgee will attempt to download in one action run. When initially setting up the repo, it may be necessary to lower this value and increase the frequency that the targets workflow is run (by adjusting the cron parameters in targets.yaml). Github also limits the rates of requests, and so the file release_data.R includes a call to Sys.sleep that can be adjusted to slow down/speed up the process of pushing data to a Github release.

# Data notes

    * MODIS NDVI values have been transformed to save space.  To restore them to the original values (between -1 and 1), divide by 100 and subtract 1.
    * Untransformed NDVI = (transformed NDVI / 100) - 1
    * Raw MODIS fire dates (tag:raw_fire_modis): values are either 0 (no fire) or the day of the year a fire was observed (1 through 366).
    * Processed MODIS fire dates (tag: processed_fire_dates: values are either 0 (no fire) or the UNIX date (days since 1 Jan. 1970) a fire was observed.
    
    
## Data layers

* Continuous Heat-Insolation Load Index (CHILI; ALOS)
* Multi-Scale Topographic Position Index (MTPI; compares elevation to surroundings; ALOS)
* Topographic Diversity (represents the variety of temperature, moisture conditions; ALOS )
* Mean annual air temperature (CHELSA Bio1)
* Mean diurnal air temperature range (CHELSA Bio2)
* Isothermality (ratio of diurnal variation to annual variation in temperatures; CHELSA Bio3)
* Temperature seasonality(std. deviation of the monthly mean temperatures; CHELSA Bio4)
* Mean daily maximum air temperature of the warmest month (CHELSA Bio5)
* Mean daily minimum air temperature of the coldest month (CHELSA Bio6)
* Annual range of air temperature (CHELSA Bio7)
* Mean daily mean air temperatures of the wettest quarter (CHELSA Bio8)
* Mean daily mean air temperatures of the driest quarter (CHELSA Bio9)
* Mean daily mean air temperatures of the warmest quarter (CHELSA Bio10)
* Mean daily mean air temperatures of the coldest quarter (CHELSA Bio11)
* Annual precipitation amount (CHELSA Bio12)
* Precipitation amount of the wettest month (CHELSA Bio13)
* Precipitation amount of the driest month (CHELSA Bio14)
* Precipitation seasonality (CV of the monthly precipitation estimates; CHELSA Bio15)
* Mean monthly precipitation amount of the wettest quarter (CHELSA Bio16)
* Mean monthly precipitation amount of the driest quarter (CHELSA Bio17)
* Mean monthly precipitation amount of the warmest quarter (CHELSA Bio18)
* Mean monthly precipitation amount of the coldest quarter (CHELSA Bio19)
* January (mid dry season) precipitation (CHELSA)
* July (mid wet season) precipitation (CHELSA)
* Interannual variability in cloud frequency (MODCF)
* Intraannual variability in cloud frequency (MODCF)
* Mean annual cloud frequency (MODCF)
* Cloud frequency seasonality concentration (sum(monthly concentration vectors); MODCF)
* Elevation (NASA DEM)
* Soil electrical conductivity (soil_EC_mS_m, Cramer et al. 2019)
* Soil extractable K (soil_Ext_K_cmol_kg, Cramer et al. 2019)
* Soil extractable NA (soil_Ext_Na_cmol_kg, Cramer et al. 2019)  
* Soil extractable P(soil_Ext_P_mg_kg, Cramer et al. 2019)
* Soil pH (Cramer et al. 2019)
* Total soil C (Cramer et al. 2019)
* Total soil N (Cramer et al. 2019)
* Time since fire (generated from MODIS active fire products and CapeNature fire polygons) 

     
## Setting up the repo
    * This repo requires github credentials.  To store those securely...
    * Credentials are decrypted with the function decryp_secret.sh

# Extras

    * Call `targets::tar_renv(extras = character(0))` to write a `_packages.R` file to expose hidden dependencies.
    * Call `renv::init()` to initialize the `renv` lockfile `renv.lock` or `renv::snapshot()` to update it.
    * Commit `renv.lock` to your Git repository.
 
# DOI
[![DOI](https://zenodo.org/badge/421127852.svg)](https://zenodo.org/badge/latestdoi/421127852)

Owner

  • Name: Adam Wilson Lab
  • Login: AdamWilsonLab
  • Kind: organization
  • Email: adamw@buffalo.edu
  • Location: Buffalo, NY

Global Change Ecology

GitHub Events

Total
  • Watch event: 2
  • Push event: 362
  • Pull request event: 1
  • Create event: 1
Last Year
  • Watch event: 2
  • Push event: 362
  • Pull request event: 1
  • Create event: 1

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 1,274
  • Total Committers: 4
  • Avg Commits per committer: 318.5
  • Development Distribution Score (DDS): 0.339
Past Year
  • Commits: 332
  • Committers: 3
  • Avg Commits per committer: 110.667
  • Development Distribution Score (DDS): 0.16
Top Committers
Name Email Commits
Brian b****r@g****m 842
Jiyeon Kim 5****0 279
Adam M. Wilson a****w@b****u 152
Jasper Slingsby j****y@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 0
  • Total pull requests: 9
  • Average time to close issues: N/A
  • Average time to close pull requests: about 3 hours
  • Total issue authors: 0
  • Total pull request authors: 3
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 9
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 4 minutes
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • adammwilson (6)
  • bmaitner (2)
  • jiyeon-kim20 (1)
Top Labels
Issue Labels
Pull Request Labels