Skip to main content
U.S. flag

An official website of the United States government

pywatershed v3.0.0

September 24, 2026

The version 3.0 release of pywatershed contains two major new areas of development: stream temperature representation, and agriculture irrigation estimation.

The stream temperature representation reproduces the capabilities from PRMS 5.2.1.1. To this end, the following new classes have been implemented in pywatershed: PRMSStreamTemp, PRMSStreamTempHumidityCBH, PRMSHydraulicGeometryWidthOnly, PRMSHydraulicGeometryFull, PRMSStreamShadeConstant, and PRMSStreamShadeDynamic. The hydraulic geometry classes constitute separate Process classes computed prior to and feeding information to PRMSStreamTemp classes. The PRMSStreamShade subclasses (constant and dynamic) are shade models which are passed into PRMSStreamTemp classes on initialization. PRMSStreamTempHumidityCBH allows for time-varying humidity values to be provided. The PRMSStreamTemp classes solve an energy balance and the existing pywatershed Budget class capabilities have been extended to cover both mass and energy balance calculations.

The agriculture irrigation estimation capabilities added to pywatershed are based on GSFLOW 2.4.0 PRMS-only capabilities. The new classes in pywatershed for these capabilities are: PRMSRunoffAg, PRMSSoilzoneAg, PRMSSoilzoneAgObsET, and PRMSAtmosphereTranspFrost. The runoff and soil zone classes all compute water fluxes and balance on and additional agricultural area fraction of the HRU in addition to impervious and pervious areas. The PRMSSoilzoneAgObsET further accepts the time-varying input of observed evapotranspiration (AET) from which irrigation use is calculated on agricultural areas based on the error of modeled AET compared to observed.

In addition to the above capabilities, an advanced and performant Output class has been introduced which allows for spatial subsetting, temporal accumulations, and user-definied statistical summaries in a manner that is both efficient built upon the xarray Python package. The Output class further enables full space*time output of selected variables to Zarr files with user-defined chunking (in space and time) which can greatly reduce model execution times compared with the previously available approach for writing output.

These new capabilities for modeling stream temperature, agriculture irrigation water use, and writing output are demonstrated in the example notebooks. Additional enhancements and bug fixes were also included with this release and are documented in the pywatershed latest release notes which stay up-to-date with development and contain details about the capabilities and fixes released with each version of pywatershed.

Publication Year 2026
Title pywatershed v3.0.0
DOI 10.5066/P13RCHPY
Authors James L Mccreight
Product Type Software Release
Record Source USGS Asset Identifier Service (AIS)
USGS Organization Water Resources Mission Area - Headquarters
Rights This work is marked with CC0 1.0 Universal
Was this page helpful?