Learn R Programming

EBASE

R package for Estuarine BAyesian Single-station Estimation (EBASE) method for ecosystem metabolism.

Installation

Install the package as follows:

# Install EBASE in R:
install.packages('EBASE', repos = c('https://fawda123.r-universe.dev', 'https://cloud.r-project.org'))

The JAGS software must also be installed to use this package. Follow the instructions in the link to download and install the version appropriate for your operating system.

Minimal example

library(dplyr)
library(lubridate)
library(doParallel)

# get four days of data
dat <- exdat %>%
  filter(month(DateTimeStamp) == 6 & day(DateTimeStamp) %in% 1:4)

##
# run ebase with defaults

# setup parallel backend
cl <- makeCluster(2)
registerDoParallel(cl)

res <- ebase(dat, interval = 900, Z = 1.85)

stopCluster(cl)

Copy Link

Version

Install

install.packages('EBASE')

Monthly Downloads

193

Version

1.1.0

License

CC0

Issues

Pull Requests

Stars

Forks

Maintainer

Marcus W. Beck

Last Published

September 25th, 2024

Functions in EBASE (1.1.0)

interp_plot

Create a diagnostic plot showing interpolated values prior to metabolism estimates
fit_plot

Plot observed and modeled dissolved oxygen
metab_update

Update metabolism jags fit
prior_plot

Plot prior distributions for a, R, and b
ebase_years

Estuarine Bayesian Single-station Estimation method for ecosystem metabolism for long time series
ebase

Estuarine Bayesian Single-station Estimation method for ecosystem metabolism
credible_prep

Get credible intervals for a, R, b
ebase_form

Format ebase output
credible_plot

Plot credible intervals for a, R, and b
ebase_plot

Plot results from EBASE
ebase_eqboxy

Oxygen saturation
ebase_rho

Seawater density calculation
ebase_prep

Prepare data for ebase
ebase_schmidt

Schmidt number calculation
exres

Example results for four days from Apalachicola NERRS
exdat

Sample data from Apalachicola NERRS