Package: okBATHTUB 0.1.11

okBATHTUB: Empirical Reservoir Eutrophication Modelling with Oklahoma Calibration

Empirical reservoir water quality modelling using Walker's 'BATHTUB' Model 1 (second-order available-phosphorus sedimentation) from Walker (1985) <https://hdl.handle.net/11681/13884> and Walker (1996) <https://hdl.handle.net/11681/4353> as the default retention model. The Vollenweider (1976) hydraulic- residence form and the equivalent formulation of Larsen and Mercier (1976) are available as alternatives. Predicts in-lake total phosphorus, total nitrogen, chlorophyll-a, and Secchi depth from tributary nutrient and hydraulic loading inputs, and computes Carlson (1977) <doi:10.4319/lo.1977.22.2.0361> Trophic State Indices. Optional Oklahoma-specific chlorophyll and Secchi regression coefficients are provided, calibrated from publicly available state lake monitoring data. Supports single-segment and multi-segment reservoir configurations and load-reduction scenario analysis. Designed to complement watershed loading models such as the Soil and Water Assessment Tool ('SWAT'; <https://swat.tamu.edu>) and the U.S. EPA Hydrologic and Water Quality System ('HAWQS'; <https://hawqs.tamu.edu>) in a two-model nutrient management workflow.

Authors:Jordon Henderson [aut, cre, cph]

okBATHTUB_0.1.11.tar.gz
okBATHTUB_0.1.11.zip(r-4.7-any)okBATHTUB_0.1.11.zip(r-4.6-any)okBATHTUB_0.1.11.zip(r-4.5-any)
okBATHTUB_0.1.11.tgz(r-4.6-any)okBATHTUB_0.1.11.tgz(r-4.5-any)
okBATHTUB_0.1.11.tar.gz(r-4.7-any)okBATHTUB_0.1.11.tar.gz(r-4.6-any)
okBATHTUB_0.1.11.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
okBATHTUB/json (API)

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

Bug tracker:https://github.com/0011235813/oklahoma-bathtub/issues

Pkgdown/docs site:https://0011235813.github.io

Datasets:

On CRAN:

Conda:

5.08 score 311 downloads 21 exports 0 dependencies

Last updated from:07e57fa237. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK140
source / vignettesOK232
linux-release-x86_64OK132
macos-release-arm64OK174
macos-oldrel-arm64OK126
windows-develOK71
windows-releaseOK81
windows-oldrelOK89
wasm-releaseOK104

Exports:ok_hydraulicsok_inlakeok_lake_ecoregionok_loadok_load_multiok_plot_responseok_plot_scenariook_plot_segmentsok_plot_tsiok_reservoirok_reservoir_summaryok_retentionok_scenariook_scenario_sweepok_segmentok_segment_chainok_segment_summaryok_themeok_trophic_colorsok_tsiok_tsi_observed

Dependencies:

Linking OK-HAWQS/SWAT Outputs to okBATHTUB
Overview | The Two-Model Workflow | OK-HAWQS Output File Structure | Reading OK-HAWQS Output | Simulated Example: 604(b) Sensitive Water Supply Workflow | Converting HAWQS Loads to okBATHTUB Inputs | Baseline BATHTUB Run | BMP Scenario Analysis | Interannual Variability Analysis | Load-Response Curve with HAWQS Context | Best Practices for HAWQS-BATHTUB Linkage | References

Last update: 2026-05-12
Started: 2026-05-09

Oklahoma Reservoir Workflow
Overview | Reservoir lookup | Choosing a coefficient set | Worked example: Arcadia Lake | Comparing to observed monitoring data | Multi-segment reservoir modelling | Load reduction scenarios | References

Last update: 2026-05-12
Started: 2026-05-09

Getting Started with okBATHTUB
Overview | The core pipeline | Step 1 — Load inputs | Step 2 — Hydraulics | Step 3 — Nutrient retention | Step 4 — In-lake predictions | Step 5 — Trophic State Index | Full pipeline in one call | Using the bundled reservoir lookup | Multiple tributaries | Computing TSI from observed data | Comparing coefficient sets | References

Last update: 2026-05-11
Started: 2026-05-09