Skip to main content
U.S. flag

An official website of the United States government

Teach me how to pycap: A high-capacity well decision support tool using analytical solutions in Python

January 25, 2026

Regulatory agencies in humid temperate environments rely on timely evaluations of streamflow depletion and drawdown to protect aquatic ecosystems and existing water users. Numerical models offer detailed insights, but their complexity and time demands often preclude their practical use in rapid decision-making. We present pycap-dss, an open-source Python package that implements a suite of analytical solutions for estimating streamflow depletion and drawdown. The tool supports superposition of multiple wells and time-varying pumping, enabling cumulative impact assessments in situations with multiple wells and streams. The software is modular and extensible, allowing users to interchange solutions or add new analytical methods. A YAML-based configuration supports batch processing of multiple wells, and an optional AnalysisProject class facilitates integration with regulatory workflows. Rigorous unit and regression testing ensures computational reliability, and continuous integration supports ongoing development. We demonstrate deterministic examples of drawdown where multiple solutions are readily compared and streamflow depletion with multiple wells in the Central Sands region of Wisconsin. We also show the value of Monte Carlo analyses of streamflow depletion in the same Central Sands example, leveraging computational efficiency to evaluate the uncertainty of individual and cumulative streamflow depletion calculations from over 200 high-capacity wells.

Publication Year 2026
Title Teach me how to pycap: A high-capacity well decision support tool using analytical solutions in Python
DOI 10.1111/gwat.70046
Authors Michael N. Fienen, Aaron Pruitt, Howard W. Reeves
Publication Type Article
Publication Subtype Journal Article
Series Title Groundwater
Index ID 70273873
Record Source USGS Publications Warehouse
USGS Organization Upper Midwest Water Science Center
Was this page helpful?