fawda123 / EBASE

Estuarine Bayesian Single-station Estimation

Home Page:https://fawda123.github.io/EBASE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EBASE

R-CMD-check EBASE status badge pkgdown Codecov test coverage

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, H = 1.85, progress = TRUE)

stopCluster(cl)

About

Estuarine Bayesian Single-station Estimation

https://fawda123.github.io/EBASE

License:Creative Commons Zero v1.0 Universal


Languages

Language:R 98.7%Language:TeX 1.3%