Glm calibration

From cxcscmu/SkillLearnBench · View interactive version

Glm calibration is an AI agent skill from the GitHub repository cxcscmu/SkillLearnBench. Calibrating the General Lake Model (GLM) by modifying parameter bounds for lake simulation.

How to use this skill

Skill file

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

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'])
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.