Skip to content
Back to skills

Docs

ASecurity

Create area-weighted spatial mapping from VIC regular grid cells to mizuRoute HRU catchments. Each VIC cell's runoff is distributed proportionally to the HRUs it overlaps.

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

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

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 2: Spatial Remapping (VIC Grid -> mizuRoute HRUs)

## Purpose
Create area-weighted spatial mapping from VIC regular grid cells to mizuRoute HRU catchments. Each VIC cell's runoff is distributed proportionally to the HRUs it overlaps.

If skipped: mizuRoute cannot distribute gridded runoff to its river network.

## Prerequisites
- [ ] VIC grid definition (basin_grid.nc)
- [ ] Network topology NetCDF with HRU definitions

## Procedure
```bash
python tools/s2_remap/create_remap_weights.py \
  --grid_nc <grid_nc> --network_nc <network_nc> \
  --output remap_weights.nc
```

## Key Validation
- Weight sum per HRU should be approximately 1.0 (all runoff accounted for)
- Every HRU should have at least one weight > 0
- No HRU should have weight sum > 1.1 (overlap miscalculation)

## Common Pitfalls
- **CRS mismatch (dt_m005)**: VIC grid (WGS84) vs HRU polygons (UTM). Both must be EPSG:4326.
- **Edge HRUs without coverage (dt_m010)**: At coarse VIC resolution, small edge HRUs may fall between grid cells. Use finer VIC resolution (0.1 deg) or nearest-neighbor assignment.

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…