Important
Notice: Project Refactor in Progress This project is undergoing a large refactor for CWMS Data API support. It will transition from a Java project consuming Jython scripts to a Python project that utilizes JPype to call underlying REGI Java libraries.
REGI-Headless is a Java-based command-line tool and library designed to run
REGI calculations in a headless environment.
It allows users to execute complex hydrological calculations and manage gate settings via Jython
scripts without the need for a graphical interface.
- Headless Execution: Run REGI calculations as part of automated workflows or on servers.
- Database Integration: Connects to CWMS data retrieval and storage.
- Modular Calculations: Includes support for:
- Inflow calculations (Clone, Compute, Auto-Adjust, Balance All, etc.)
- Flow Group and gate settings calculations.
regi-headless/: Core Java implementation, includingRegiCLI.district-scripts/: Example scripts and district-specific configurations.docs/: Additional documentation.
- Java JDK 21 or higher.
The library reads the following environment variables when establishing the CWMS Data API data source:
CDA_URL: Base URL for the CWMS Data API endpoint.API_KEY: API key used for CWMS Data API authentication and authorization.OFFICE_ID: CWMS office identifier used to scope the session.
The factory uses these values to authenticate, resolve the current user, and persist the connected office and time zone into the REGI project.
./gradlew buildDetails TBD.
TBD
TBD
TBD
TBD
See MAINTAINERS.md for a list of project maintainers.
See LICENSE for licensing information.