Skip to content
Back to skills

Docs

ASecurity

Generate the mizuRoute control file that specifies all input/output paths, variable names, routing method, and time settings.

  • 200 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
documentation

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-44912ccd/badge)](https://www.skillsdirectory.com/skills/lzwei196-docs-44912ccd)

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 4: Control File Reference

## Purpose
Generate the mizuRoute control file that specifies all input/output paths, variable names, routing method, and time settings.

## Format
Key-value pairs: `<variable_name>  value`. Lines starting with `!` are comments.

## Complete Variable Reference

### Paths
| Variable | Description | Example |
|----------|-------------|---------|
| `ancil_dir` | Directory for network/remap files | `/path/to/ancil/` |
| `input_dir` | Directory for runoff input files | `/path/to/input/` |
| `output_dir` | Output directory | `/path/to/output/` |
| `fname_ntopOld` | Network topology filename | `network_topology.nc` |
| `fname_qsim` | Runoff input filename | `runoff.nc` |
| `fname_output` | Output file prefix | `basin_name` |
| `fname_remap` | Remap weights filename | `remap_weights.nc` |

### Variable Name Mapping
| Control variable | Default (HydroCraft) | NHDPlus equivalent |
|-----------------|---------------------|-------------------|
| `vname_segid` | `seg_id` | `COMID` |
| `vname_tosegment` | `tosegment` | `toComid` |
| `vname_length` | `seg_length` | `LENGTHKM` |
| `vname_slope` | `seg_slope` | `SLOPE` |
| `vname_hruid` | `hru_id` | `COMID` |
| `vname_area` | `hru_area` | `AreaSqKM` |
| `vname_qsim` | `RUNOFF` | varies |
| `vname_time` | `time` | `time` |

### Routing Method
| Variable | Values | Default |
|----------|--------|---------|
| `route_opt` | 0=IRF, 1=KWT, 2=KWE, 3=MC, 4=DW | 0 |
| `doesBasinRoute` | 0 or 1 | 0 |
| `doesAccumRunoff` | 0 or 1 | 1 |

### Time
| Variable | Format | Example |
|----------|--------|---------|
| `sim_start` | YYYY-MM-DD HH:MM:SS | 2000-01-01 00:00:00 |
| `sim_end` | YYYY-MM-DD HH:MM:SS | 2010-12-31 00:00:00 |
| `dt` | seconds | 3600 |
| `calendar` | standard/noleap | standard |

## Common Pitfalls
- **Variable name mismatch (dt_m004)**: vname_* must exactly match NetCDF variable names
- **Path truncation (dt_m017)**: Keep all paths < 120 characters
- **Wrong units_qsim**: Must match actual runoff units in the NetCDF file

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…