Back to skills
SKILL.md
Docs
ASecurityConvert CMFD/MSWX forcing to ParFlow/CLM PFB format with correct units.
- 231 stars
- 0 votes
- 0 copies
- 2 views
- Added September 11, 2026
Works with
Security analysis
100/100Pro scans all 14 files and shows the line behind each finding
npx -y skills add lzwei196/KISS---Knowledge-Infrastructure-for-Scientific-Simulation --skill docs --agent claude-codeAre you the author of Docs?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/lzwei196-docs-1bd572e0)# 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.md
- format_spec.yaml
- papers.json
- s1_domain_skill.md
- s2_subsurface_skill.md
- s3_topography_skill.md
- s4_clm_skill.md
- s5_forcing_skill.md
- s6_ic_bc_skill.md
- s7_solver_skill.md
- s8_execution_skill.md
- s9_output_skill.md
- validation_convention.yaml
Attribution
Related skills
View all in content-marketing →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.