# Glm Calibration

> Calibrating the General Lake Model (GLM) by modifying parameter bounds for lake simulation.

- Skill: `cxcscmu/glm-calibration-3` (Agent Skill)
- Install (CLI): `npx get-skill add cxcscmu/glm-calibration-3`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cxcscmu/glm-calibration-3/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: cxcscmu (https://skillmd.com/u/cxcscmu)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/cxcscmu/glm-calibration-3

---


# glm-calibration

This skill involves adjusting physical coefficients such as Kw, wind_factor, and sensible heat flux in a model configuration file (e.g., `glm3.nml`) to optimize the root mean square error (RMSE) against observations.

## Example Pattern
```python
import f90nml
import subprocess

def run_simulation(params):
    # Load default settings
    nml = f90nml.read('glm3.nml')

    # Assign new parameters
    nml['light']['Kw'] = params['Kw']
    nml['meteorology']['wind_factor'] = params['wind_factor']

    # Overwrite configuration
    nml.write('glm3_new.nml', force=True)
    
    # Run GLM executable with new parameters
    subprocess.run(['glm', '--nml', 'glm3_new.nml'])
```
