Skip to content
Back to skills

Docs

ASecurity

> **Stage ID**: s10_vic_coupling > **Pipeline order**: 10 of 10 > **Depends on**: a finished VIC run (its RESULTS)

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

Works with

  • cli

Security analysis

A100/100

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

Scanned October 5, 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-ee316482/badge)](https://www.skillsdirectory.com/skills/lzwei196-docs-ee316482)

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
# VIC-LDNDC Coupling — Skill Document

> **Stage ID**: s10_vic_coupling
> **Pipeline order**: 10 of 10
> **Depends on**: a finished VIC run (its RESULTS)

## Purpose

Use VIC simulation RESULTS in an LDNDC run: the simulated soil moisture on the LDNDC start date sets the LDNDC initial water content, so the first year needs less spin-up.

This stage takes results only. LDNDC climate and soil are never made from VIC forcing files or the VIC soil parameter file: climate comes from the data source through S4 (`convert_forcing_to_ldndc_climate.py`), soil from HWSD through S2 (`hwsd_to_ldndc_soil.py`).

## Prerequisites

- [ ] VIC simulation complete; output files at `outputs/{run_name}/vic_result/`
- [ ] LDNDC site layers known (S2 complete)

## Inputs

| Input | Type | Source | Description |
|-------|------|--------|-------------|
| vic_result_dir | directory | VIC run | VIC simulation output (flux files with soil moisture) |
| lat, lon | number | S1 | Target grid cell |

## Procedure

### Step 1: Extract VIC soil moisture for initial conditions

```bash
python tools/s10_vic_coupling/vic_to_ldndc_soilwater.py
```

Uses the VIC output soil moisture columns on the simulation start date, converts mm to volumetric fraction (theta = SM_mm / layer_depth_mm) and maps the VIC 3 layers onto the LDNDC layer profile.

## Expected Outputs

| Output | Path | Verification |
|--------|------|--------------|
| soil moisture JSON | in-memory | Theta in [0, porosity] per layer |

## Common Pitfalls

> **PITFALL**: VIC soil moisture includes ice in frozen soil
> For a start date in winter, check the value against porosity before using it.

---

*This skill document is part of the ldndc-knowledge-infrastructure package.*
*Stage 10 of 10 | Tools used: vic_to_ldndc_soilwater*

Files in this skill

  • REFERENCES.md1.3 KB
  • format_spec.yaml34.9 KB
  • model_couplings.yaml9.6 KB
  • papers.json6.7 KB
  • s10_vic_coupling_skill.md5.2 KB
  • s1_installation_skill.md4.9 KB
  • s1_project_setup_skill.md4 KB
  • s2_site_config_skill.md4.7 KB
  • s3_setup_modules_skill.md4.3 KB
  • s4_climate_prep_skill.md4 KB
  • s5_airchemistry_prep_skill.md2.7 KB
  • s6_management_config_skill.md4.2 KB
  • s7_species_params_skill.md3.4 KB
  • s8_execution_skill.md4 KB
  • s9_coupling_skill.md7.3 KB
  • s9_output_parsing_skill.md4.5 KB
  • validation_convention.yaml18.6 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…