Lohmann Routing

Automate VIC routing parameter generation and runoff-to-discharge execution.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, rasterio, geopandas, shapely, whitebox.

What problem does it solve?

This Skill provides an end-to-end workflow to parameterize and run the VIC routing module, converting VIC runoff into river discharge for watershed-scale analysis.

Core Features & Use Cases

  • Automated routing parameter generation: Produces routing inputs (direc, xmask, frac, staloc, UH) and a rout_global configuration from high-level VIC data.
  • VIC input preprocessing & integration: Prepares VIC outputs (dem, soil parameters) and creates the necessary VIC-in inputs (vic_in) for routing.
  • End-to-end execution: Validates prerequisites with preflight checks, executes the routing model, and outputs routing results for further analysis.
  • Use Case: Researchers can automatically generate routing parameters for a basin, run the VIC routing model, and inspect daily discharge files without manual wiring.

Quick Start

Prepare routing parameters for your basin and run the VIC routing model using rout_global.txt after linking VIC outputs to vic_in and ensuring required UH/all files are in place.

Frequently Asked Questions about Lohmann Routing

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

FAQPage Schema
How do I convert VIC runoff into river discharge for watershed analysis?

To convert VIC runoff into river discharge, you need to generate routing parameters like flow direction and unit hydrographs, then execute the routing model using a configuration file. This workflow processes VIC outputs to produce daily discharge files.

What inputs are required for VIC routing parameter generation?

VIC routing parameter generation requires VIC inputs including soil parameters, a DEM, and a basin shapefile, along with VIC runoff outputs. These datasets are preprocessed to create necessary routing inputs like flow direction and fraction files.

Can I use geopandas and rasterio for hydrological routing preprocessing?

Yes, geopandas and rasterio are used for hydrological routing preprocessing to handle geospatial vector and raster data. They work alongside numpy, shapely, and WhiteboxTools to prepare VIC inputs and generate routing parameters.

How do I automate the VIC routing workflow from parameter creation to execution?

Automating the VIC routing workflow involves using a tool that handles parameter creation, VIC input preprocessing, unit hydrograph setup, and routing execution. It validates prerequisites with preflight checks and outputs routing results automatically.

What is the role of a unit hydrograph in VIC routing?

A unit hydrograph in VIC routing represents the runoff response over time, used to translate VIC runoff into river discharge. It is generated during preprocessing and is a required input for executing the routing model.