Skip to main content
U.S. flag

An official website of the United States government

Site Section
Data & Maps

Source Code: An R-Based Streamflow Model to Detect Low Flows at USGS Gages

Associated Agencies

U.S. Geological Survey

An R workspace with functions comprising a non-linear baseflow separation model, and a complete set of files to run the model in a compressed file including a script that will demonstrate how to run the model.  The model can be used to predict low flows at about 13,000 USGS gages for a dry-weather (no rain) scenario. The model is documented in U.S. Geological Survey Scientific Investigations Report 2022-5114.

This code is furnished "as is." The authors, the United States Government, its instrumentalities, officers, employees, and agents make no warranty, express or implied, as to the usefulness of the software and documentation for any purpose. They assume no responsibility (1) for the use of the software and documentation; or (2) to provide technical support to users.

DOCUMENTATION

Parameter values were determined by calibration of the model. Estimates of the baseflow component include daily values and the total baseflow as a fraction of streamflow for the analysis period. The file 'run_bf_sep.zip' in the directory 'Nonlinear Baseflow Model Source Code, Functions, and Scripts" has a complete set of model functions, parameters for 13,208 USGS streamflow gages, and a script to run the model. Instructions and software requirements for running the model are described in the file README.txt