Acquires and synthesizes soil carbon fluxes at sites located in the National Ecological Observatory Network (NEON). Provides flux estimates and associated uncertainty as well as key environmental measurements (soil water, temperature, CO2 concentration) that are used to compute soil fluxes.
neonSoilFlux is a repository code to acquire, tidy, and compute soil respiration fluxes at NEON sites using the flux-gradient method.
Installation in R through:
install.packages("neonSoilFlux")devtools::install_github("jmzobitz/neonSoilFlux",
build = TRUE,
build_opts = c("--no-resave-data", "--no-manual"),
force=TRUE
)
If you encounter problems with code in this repository, feel free to post an issue.
To analyze fluxes once the package is installed requires a two step process:
Get an API token from NEON. Instructions on how to do that are here: https://www.neonscience.org/resources/learning-hub/tutorials/api-token-setup.
Set your API token in your local R environment:
neonSoilFlux::neon_api_token("YOUR_TOKEN_HERE", install = TRUE)
Then your token will be saved automatically when downloading data from NEON.
loadByProduct function in the neonUtilities package. We will use the data located at the San Joaquin Experimental Range terrestrial site and compute fluxes from June 2022. You can also consult NEON's map of all sites to explore data from a terrestrial site of your choosing.library(tidyverse) # Make sure dplyr, purrr, and lubridate are installed
library(neonUtilities) # Used for acquiring NEON data
library(neonSoilFlux)
out_env_data <- acquire_neon_data(site_name = 'SJER',
download_date = '2022-06'
)
What will be returned is a nested list containing site_data (monthly variables needed to compute fluxes) and site_megapit (soil properties)
out_fluxes <- compute_neon_flux(input_site_env = out_env_data$site_data,
input_site_megapit = out_env_data$site_megapit
)
You now have a data frame of computed fluxes.
More detailed usage information is given in the vignette using-neonSoilFlux (vignette(using-neonSoilFlux)).
The package neonSoilFlux was funded with support from the National Science Foundation, grant #2017829. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
The National Ecological Observatory Network is a program sponsored by the National Science Foundation and operated under cooperative agreement by Battelle. This material is based in part upon work supported by the National Science Foundation through the NEON Program.
neonSoilFlux: An R Package for Continuous Sensor-Based Estimation of Soil CO~2~ Fluxes, published in Methods in Ecology and EvolutionGNU Affero General Public License Version 3, 19 November 2007
Information and documents contained within this repository are available as-is. Codes or documents, or their use, may not be supported or maintained under any program or service and may not be compatible with data currently available from the NEON Data Portal.