swatplus-knowledge-infrastructure

Automate SWAT+ workflows from template TxtInOut to parsed outputs.

1|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/lzwei196/KISS---Knowledge-Infrastructure-for-Scientific-Simulation --skill swatplus-knowledge-infrastructure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swatplus-knowledge-infrastructure
Source: https://github.com/lzwei196/KISS---Knowledge-Infrastructure-for-Scientific-Simulation/tree/main/models/SWAT_Plus
Command: npx skills add https://github.com/lzwei196/KISS---Knowledge-Infrastructure-for-Scientific-Simulation --skill swatplus-knowledge-infrastructure

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pySWATPlus, netCDF4, numpy, matplotlib.

What problem does it solve?

Automates the end-to-end SWAT+ knowledge infrastructure workflow, enabling autonomous setup, execution, and validation of watershed simulations from a SWAT+ template TxtInOut directory.

Core Features & Use Cases

  • End-to-end SWAT+ automation: generate, validate, and run the TxtInOut configuration and execute the SWAT+ binary.
  • Data integration & prep: automatic soils.sol generation from HWSD/SSURGO/SoilGrids, weather data preparation, HRU generation, calibration scaffolding, and preflight checks.
  • Reproducibility & diagnostics: built-in diagnostic triplets and a robust preflight to catch common failure modes before runtime.
  • Use Case: replicate a Huai River scenario by wiring weather forcing, soil properties, and management parameters to reproduce observed hydrology and nutrient loads.

Quick Start

Run adapt_swatplus_project.py with a template TxtInOut, new weather data, and a soils file to generate a ready-to-run SWAT+ project for your basin.

Frequently Asked Questions about swatplus-knowledge-infrastructure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate SWAT+ workflows from TxtInOut to final outputs?

To automate SWAT+ workflows, use a validated toolchain that generates and validates TxtInOut configurations, executes the SWAT+ binary, and parses final outputs. This end-to-end automation covers weather, soils, HRU definition, calibration, and execution.

What is the best way to generate soils.sol files from HWSD, SSURGO, and SoilGrids for SWAT+?

The best way to generate soils.sol files is using an automated data integration prep process that extracts soil properties from HWSD, SSURGO, or SoilGrids databases. This creates validated soils files required for HRU generation in your basin.

Can I use pySWATPlus to set up calibration scaffolding for basin-scale hydrology simulations?

Yes, you can use pySWATPlus to set up calibration scaffolding for basin-scale hydrology. The automation workflow includes calibration scaffolding alongside HRU generation and weather data prep to reproduce observed hydrology and nutrient loads.

Does SWAT+ automation work with netCDF4 weather data preparation?

SWAT+ automation works with netCDF4 for weather data preparation by wiring weather forcing into the simulation. The workflow processes netCDF4 climate data to generate ready-to-run TxtInOut configurations for your specific basin.

Why does my SWAT+ simulation fail, and how can preflight checks help debug errors?

SWAT+ simulations fail due to common configuration errors, but preflight checks catch these failure modes before runtime. Built-in diagnostic triplets provide a robust error resolution mechanism to ensure reproducibility and debuggability.