Skip to content
Back to skills

Docs

ASecurity

Convert CMFD/MSWX forcing to ParFlow/CLM PFB format with correct units.

  • 231 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
content-marketing

Works with

  • cli

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

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
# S5: Meteorological Forcing — Skill Document

## Purpose

Convert CMFD/MSWX forcing to ParFlow/CLM PFB format with correct units.

## CRITICAL UNIT CONVERSION TABLE

| Variable | CLM Unit | CMFD Unit | Conversion | If Wrong (Silent Error) |
|----------|----------|-----------|------------|-------------------------|
| DSWR | W/m2 | W/m2 | None | - |
| DLWR | W/m2 | W/m2 | None | - |
| **APCP** | **mm/s** | mm/hr | **divide by 3600** | 3600x too much rain (dt_pf_002) |
| **Tmp** | **K** | K | None | If C: model thinks -248C (dt_pf_006) |
| UGRD | m/s | m/s | None (scalar->U) | - |
| VGRD | m/s | 0 | Set to 0 | - |
| **Press** | **Pa** | Pa | None | If hPa: 100x too low (dt_pf_007) |
| SPFH | kg/kg | kg/kg | None | - |

## Procedure

1. **Run** `convert_forcing_to_pfb.py` with forcing source and domain JSON.
2. **Verify** output file count matches expected timesteps.
3. **Verify** NLDAS naming convention: `NLDAS.<run>.000001.pfb` etc.
4. **Spot-check** one file: precipitation should be 0-0.01 mm/s range.

## Common Pitfalls

- **Precipitation units** (dt_pf_002): The most common ParFlow forcing error.
- **Temperature units** (dt_pf_006): CMFD is already K, but verify.
- **File numbering gaps** (dt_pf_031): CLM reads sequentially -- any gap crashes.
- **MSWX is slower**: 3-16 GB files take ~3 min each to clip.

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 content-marketing →

Comments

Loading comments…

Newsletter

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