Skip to content
Back to skills

Docs

ASecurity

Extract hydrological variables from ParFlow PFB output and convert to standard formats.

  • 231 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
testing

Security analysis

A100/100

Pro scans all 14 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-3b47a90b/badge)](https://www.skillsdirectory.com/skills/lzwei196-docs-3b47a90b)

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
# S9: Output Processing — Skill Document

## Purpose

Extract hydrological variables from ParFlow PFB output and convert to standard formats.

## Key Variables

| Variable | Source | Units | Extraction Method |
|----------|--------|-------|-------------------|
| Water table depth | saturation field | m below surface | Saturation >= 0.99 threshold (NOT pressure=0) |
| Overland flow depth | pressure at surface | m | Positive pressure at top layer |
| Soil moisture | saturation * porosity | m3/m3 | Per layer |
| Discharge at outlet | overland flow velocity * depth | m3/s | Sum at outlet cells |
| Subsurface storage | saturation * porosity * volume | m3 | Integrate over domain |

## Procedure

1. **Run** `parse_parflow_output.py` with run directory and domain JSON.
2. **Check** timeseries.json for reasonable values.
3. **Check** water balance: P - ET - Q - dS/dt should be < 1% of P.

## Critical Knowledge

- **Water table** (dt_pf_041): Use saturation >= 0.99, NOT pressure = 0. The pressure=0 contour may not align with cell centers in coarse grids.
- **Discharge extraction** (dt_pf_042): The outlet cell must be on the overland flow path (determined by slopes), not just the shapefile pour point.
- **Distributed PFB** (dt_pf_040): Combine before reading, or use `dist=True`.
- **CLM output**: `*.out.clm_output.NNNNN.C.pfb` contains 11 CLM diagnostic variables in layers. See ParFlow manual for variable ordering.
- **Coupling** (dt_pf_050): Do NOT send both ParFlow AND VIC runoff to CaMa-Flood.
- **Temporal aggregation** (dt_pf_052): Use MEAN for fluxes, instantaneous for states.

## Validation Checks

1. Water table depth is positive (0 to total_depth range)
2. Discharge is non-negative
3. Storage change matches water balance
4. Final state is physically reasonable (no saturated columns in dry basins)

Files in this skill

  • REFERENCES.md1.7 KB
  • format_spec.yaml39.8 KB
  • papers.json5.4 KB
  • s1_domain_skill.md3 KB
  • s2_subsurface_skill.md2.6 KB
  • s3_topography_skill.md1.1 KB
  • s4_clm_skill.md1 KB
  • s5_forcing_skill.md1.3 KB
  • s6_ic_bc_skill.md1.8 KB
  • s7_solver_skill.md1.7 KB
  • s8_execution_skill.md1.5 KB
  • s9_output_skill.md1.8 KB
  • validation_convention.yaml20.2 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.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.