Tools for Working with 'StreamCat' and 'LakeCat' Data

Tools for using the 'StreamCat' and 'LakeCat' API and interacting with the 'StreamCat' and 'LakeCat' database. Convenience functions in the package wrap the API for 'StreamCat' on < https://api.epa.gov/StreamCat/streams/metrics>.


StreamCatTools

Project Status: Active – The project has reached a stable, usable state and is being actively developed. CRAN cran checks R-CMD-check Downloads CodeCov

StreamCatTools: Tools to work with the StreamCat API within R and access the full suite of StreamCat and LakeCat metrics.

StreamCatTools is an R package for accessing StreamCat and LakeCat data via the StreamCat API and for working with site data in conjunction with StreamCat and NHDPlus.

Installation

You can install and load the most recent approved version from CRAN by running

# install the most recent approved version from CRAN
install.packages("StreamCatTools")
# load the most recent approved version from CRAN
library(StreamCatTools)

You can install and load the most recent development version from GitHub by running:

library(remotes)
install_github("USEPA/StreamCatTools", build_vignettes=TRUE)
library(StreamCatTools)

To view the vignette in RStudio, run

vignette("StartHere", "StreamCatTools")

Contributing

Contributions to development of the package are welcome and encouraged. Please consider the following guidelines for contributing to StreamCatTools:

  • We encourage package users to submit bugs and enhancement requests by submitting issues - see the Quickstart for GitHub Issues page if you are new to GitHub issues
  • Contributions should use the standard GitHub fork - pull-request workflow
  • We encourage use of the tidyverse style guide for contributions
  • Contributions should ideally be tested using testthat
  • Make sure you use roxygen and run Check before contributing
  • If you contribute to documentation, running devtools::document() and then pkgdown::build_site() will refresh the help docs and pkgdown pages (but do not push these packagedown changes - they are to verify changes locally)

Python Implementation of StreamCat API

PyNHD, part of the HyRiver suite of Python packages, also provides access to StreamCat data via the API in Python, along with other NHDPlus value-added attributes for catchments and catchment and network accumulated values for catchments available via USGS ScienceBase

Recommended Citation:

citation(package = "StreamCatTools"")
To cite package ‘StreamCatTools’ in publications use:

  Weber M, Hill R, Markley S, Hudson T, Brookes A (2026). _StreamCatTools:
  StreamCatTools: Tools for Working with StreamCat and LakeCat Data_. R package
  version 0.11.0, <https://usepa.github.io/StreamCatTools/>.

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {StreamCatTools: StreamCatTools: Tools for Working with StreamCat and LakeCat Data},
    author = {Marc Weber and Ryan Hill and Selia Markley and Travis Hudson and Allen Brookes},
    year = {2026},
    note = {R package version 0.11.0},
    url = {https://usepa.github.io/StreamCatTools/},
  }

Disclaimer

The United States Environmental Protection Agency (EPA) GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. EPA has relinquished control of the information and no longer has responsibility to protect the integrity , confidentiality, or availability of the information. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by EPA. The EPA seal and logo shall not be used in any manner to imply endorsement of any commercial product or activity by EPA or the United States Government.

License

This package is released under the MIT License. See LICENSE.md for the full text.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("StreamCatTools")

0.12.0 by Marc Weber, 2 days ago


https://usepa.github.io/StreamCatTools/, https://github.com/USEPA/StreamCatTools


Report a bug at https://github.com/USEPA/StreamCatTools/issues


Browse source code at https://github.com/cran/StreamCatTools


Authors: Marc Weber [aut, cre] , Ryan Hill [aut] , Selia Markley [aut] , Travis Hudson [aut] , Allen Brookes [aut] , David Rebhuhn [ctb] , Michael Dumelle [ctb] , Justin Bousquin [ctb] , Zachary Smith [ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports sf, hydrogeofetch, jsonlite, httr2, curl, ggpattern, patchwork, cowplot, tigris, ggplot2, dplyr, tidyr, stringr, tibble

Suggests mapview, testthat, knitr, rmarkdown, devtools, xml2, magrittr, readr, purrr, lifecycle, tidyselect, DBI, duckdb, tictoc, stats, wk


Suggested by hydrogeofetch, nhdplusTools.


See at CRAN