Skip to content
Back to skills

Docs

ASecurity

Select the appropriate routing method, configure basin parameters, and determine whether lake routing is needed. This stage produces the configuration consumed by all downstream stages.

  • 200 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
testinggo

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add lzwei196/KISS---Knowledge-Infrastructure-for-Scientific-Simulation --skill docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lzwei196-docs-10bd1471/badge)](https://www.skillsdirectory.com/skills/lzwei196-docs-10bd1471)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Stage 0: Configuration — Routing Method Selection Guide

## Purpose

Select the appropriate routing method, configure basin parameters, and determine whether lake routing is needed. This stage produces the configuration consumed by all downstream stages.

If skipped: downstream tools use default parameters (IRF, no lakes, daily timestep), which may not be appropriate.

## Prerequisites

- Basin shapefile exists (from HydroCraft delineation)
- VIC or WRF-Hydro simulation complete (runoff output available)
- User has specified desired routing method (or use decision tree below)

## Method Selection Decision Tree

```
Is floodplain inundation needed?
  YES -> Use CaMa-Flood (not mizuRoute)
  NO -> Continue

Does basin have significant lakes/reservoirs?
  YES -> mizuRoute with lake routing (route_opt=2 KWE + is_lake_sim=True)
  NO -> Continue

Basin size?
  Small (<1000 km², <50 reaches):
    -> IRF (route_opt=0): fastest, sufficient physics
  Medium (1000-50000 km², 50-1000 reaches):
    -> KWE (route_opt=2): good balance of physics and speed
    -> MC (route_opt=3): if NWM-compatible results desired
  Large (>50000 km², >1000 reaches):
    -> MC (route_opt=3): operationally proven at scale
    -> KWT (route_opt=1): efficient for large networks

Terrain type?
  Flat (coastal, plains): DW (route_opt=4) captures backwater, but needs small dt
  Steep (mountains): IRF or KWT (unconditionally stable, no CFL concern)
  Mixed: KWE or MC (general purpose)

Purpose?
  Quick comparison with Lohmann: IRF (closest physics)
  Research/method intercomparison: All 5 methods via compare_routing_methods.py
  Operational forecasting: MC (used by NOAA National Water Model)
```

## Inputs

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| basin_name | string | Yes | - | Short basin identifier |
| route_opt | int | No | 0 (IRF) | Routing method 0-4 |
| dt | int | No | 3600 | Routing timestep (seconds) |
| start_date | string | Yes | - | YYYY-MM-DD |
| end_date | string | Yes | - | YYYY-MM-DD |
| enable_lakes | bool | No | False | Enable lake routing |
| basin_irf | bool | No | False | Apply hillslope IRF before reach routing |

## Validation Checks

1. Route method is 0-4
2. dt is reasonable: 300-86400 seconds. For DW/KWE on steep basins, use dt=300-900.
3. Time period matches VIC output period
4. If enable_lakes=True, verify lake data is available

## Common Pitfalls

- **Pitfall**: Using DW (route_opt=4) on steep mountain basins -> CFL violation (dt_m009)
  - **Fix**: Use IRF (0) or KWT (1) for steep basins, or reduce dt to 300s
- **Pitfall**: Setting doesBasinRoute=1 when comparing with Lohmann -> double hillslope delay (dt_m014)
  - **Fix**: Set doesBasinRoute=0 for Lohmann comparison

Files in this skill

  • REFERENCES.md1.1 KB
  • format_spec.yaml23.5 KB
  • papers.json4.2 KB
  • s0_config_skill.md2.7 KB
  • s1_network_skill.md1.7 KB
  • s2_remap_skill.md1.1 KB
  • s3_runoff_skill.md3.9 KB
  • s4_control_skill.md2 KB
  • s5_execution_skill.md1.5 KB
  • s6_comparison_skill.md2.2 KB
  • s_lake_routing_skill.md1.9 KB
  • validation_convention.yaml12.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…