RESEARCH / CODE / EXPLORATION

Ideas into models
Models into impact

Selected research and open-source tools at the intersection of water, climate, and computation.

SWATprep project configuration interface with data sections and validation controls.
SWATprep · live app, bundled example project
Hydrological Modeling & GIS01

SWATprep

From raw data to model-ready inputs.

A Python library, CLI, and Streamlit app for preparing DEM, land-use, soil, weather, and streamflow inputs for SWAT Classic and SWAT+. A shared YAML configuration drives raster clipping, reprojection, weather gap filling, and validation, with quality-assurance reports for reproducible model preparation.

PythonStreamlitRasterioGeoPandasSWAT/SWAT+
View on GitHub
Python example from the SpySWAT README showing project setup and calibration.
SpySWAT · Python API from the project README
Scientific Software02

SpySWAT

Less repetition. More research.

A Python tool for streamlining SWAT model input and output processing. Automated TxtInOut management helps make hydrological research workflows more efficient and repeatable.

PythonHydrologyAutomation
View on GitHub
Historical daily SWAT streamflow and mean station rainfall from the project input dataset.
Historical input data · SWAT simulation and rainfall
Environmental Data Science03

Learning from streamflow errors

Physical models meet machine learning.

Comparing Linear Regression, Random Forest, XGBoost, and tuned XGBoost to correct streamflow simulation errors under climate change scenarios.

PythonMachine LearningScikit-learn
View on GitHub
Research figure showing model performance by river basin and an NSE map across Vietnam.
NAFOSTED research · river basin model performance
Ongoing Research · NAFOSTED 202504

Modeling beyond gauged basins

Parameter regionalization across Vietnam.

Using SWAT to simulate streamflow in Vietnamese river basins and applying machine learning to generalize model parameters for similar, ungauged regions.

SWATR-SWATPython
Research in progress