← 返回 Skills 市场
wu-uk

glm-calibration

作者 wu-uk · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
72
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install glm-lake-mendota-glm-calibration
功能描述
Calibrate GLM parameters for water temperature simulation. Use when you need to adjust model parameters to minimize RMSE between simulated and observed tempe...
使用说明 (SKILL.md)

GLM Calibration Guide

Overview

GLM calibration involves adjusting physical parameters to minimize the difference between simulated and observed water temperatures. The goal is typically to achieve RMSE \x3C 2.0°C.

Key Calibration Parameters

Parameter Section Description Default Range
Kw &light Light extinction coefficient (m⁻¹) 0.3 0.1 - 0.5
coef_mix_hyp &mixing Hypolimnetic mixing coefficient 0.5 0.3 - 0.7
wind_factor &meteorology Wind speed scaling factor 1.0 0.7 - 1.3
lw_factor &meteorology Longwave radiation scaling 1.0 0.7 - 1.3
ch &meteorology Sensible heat transfer coefficient 0.0013 0.0005 - 0.002

Parameter Effects

Parameter Increase Effect Decrease Effect
Kw Less light penetration, cooler deep water More light penetration, warmer deep water
coef_mix_hyp More deep mixing, weaker stratification Less mixing, stronger stratification
wind_factor More surface mixing Less surface mixing
lw_factor More heat input Less heat input
ch More sensible heat exchange Less heat exchange

Calibration with Optimization

from scipy.optimize import minimize

def objective(x):
    Kw, coef_mix_hyp, wind_factor, lw_factor, ch = x

    # Modify parameters
    params = {
        'Kw': round(Kw, 4),
        'coef_mix_hyp': round(coef_mix_hyp, 4),
        'wind_factor': round(wind_factor, 4),
        'lw_factor': round(lw_factor, 4),
        'ch': round(ch, 6)
    }
    modify_nml('glm3.nml', params)

    # Run GLM
    subprocess.run(['glm'], capture_output=True)

    # Calculate RMSE
    rmse = calculate_rmse(sim_df, obs_df)
    return rmse

# Initial values (defaults)
x0 = [0.3, 0.5, 1.0, 1.0, 0.0013]

# Run optimization
result = minimize(
    objective,
    x0,
    method='Nelder-Mead',
    options={'maxiter': 150}
)

Manual Calibration Strategy

  1. Start with default parameters, run GLM, calculate RMSE
  2. Adjust one parameter at a time
  3. If surface too warm → increase wind_factor
  4. If deep water too warm → increase Kw
  5. If stratification too weak → decrease coef_mix_hyp
  6. Iterate until RMSE \x3C 2.0°C

Common Issues

Issue Likely Cause Solution
Surface too warm Low wind mixing Increase wind_factor
Deep water too warm Too much light penetration Increase Kw
Weak stratification Too much mixing Decrease coef_mix_hyp
Overall warm bias Heat budget too high Decrease lw_factor or ch

Best Practices

  • Change one parameter at a time when manually calibrating
  • Keep parameters within physical ranges
  • Use optimization for fine-tuning after manual adjustment
  • Target RMSE \x3C 2.0°C for good calibration
安全使用建议
This skill's guide appears to be a legitimate how-to for calibrating GLM, but it omits key runtime details. Before installing or enabling it: 1) Confirm you have the GLM executable available and trust its origin; the skill will call subprocess.run(['glm']) and execute that binary. 2) Ensure you have a Python environment with scipy and whatever code provides modify_nml, calculate_rmse, and the sim_df/obs_df data structures; the SKILL.md references these but doesn't provide implementations. 3) Back up your glm3.nml (and any other model input files) — the instructions modify that file. 4) If you don't want an agent to run binaries or edit files on your machine autonomously, disable autonomous invocation for this skill or run it in a sandbox. 5) Prefer a version of the skill that declares required binaries/dependencies and explains where observation data should come from. If you need higher assurance, request the author provide: a) an explicit manifest of required tools and files, b) example scripts for prepare/load obs_df and sim_df, and c) instructions for safe execution (dry-run, backups, logging).
功能分析
Type: OpenClaw Skill Name: glm-lake-mendota-glm-calibration Version: 0.1.0 The skill bundle provides legitimate documentation and a Python code template for calibrating the General Lake Model (GLM) for water temperature simulations. The instructions in SKILL.md are strictly focused on scientific parameters (e.g., light extinction, mixing coefficients), and the included code uses subprocess.run safely to execute the model binary without any signs of data exfiltration, malicious execution, or harmful prompt injection.
能力评估
Purpose & Capability
The skill's stated purpose (calibrating GLM) is coherent with the SKILL.md content. However, the instructions assume the presence of an external 'glm' executable, a local configuration file (glm3.nml), and Python dependencies (scipy, subprocess usage, dataframes sim_df/obs_df) while the manifest declares no required binaries, env vars, or config paths. The omission of these required runtime artifacts is an inconsistency.
Instruction Scope
The SKILL.md explicitly instructs modifying glm3.nml and running the 'glm' binary via subprocess, as well as computing RMSE from sim_df and obs_df. Those actions are within the stated calibration purpose, but the instructions don't say where obs_df/sim_df come from, how to ensure backups, or that the glm binary will be executed with what inputs. Running an unmanaged external binary and editing a local .nml file are notable runtime effects that should be documented.
Install Mechanism
This is an instruction-only skill with no install spec or downloaded code, which minimizes supply-chain risk. There is no installer or archive to review.
Credentials
No credentials or environment variables are requested (appropriate). However, the instructions implicitly require filesystem read/write access (glm3.nml) and execution permission for a local 'glm' binary, plus a Python environment with SciPy and dataframes. Those implicit requirements are reasonable for calibration but should have been declared in the manifest so users know what privileges and tooling are needed.
Persistence & Privilege
The skill does not request always: true and is not trying to persist or modify other skills or system-wide settings. Autonomous invocation is enabled by default on the platform (not a problem by itself), but note that the instructions will cause the agent to run local binaries and edit files when invoked.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install glm-lake-mendota-glm-calibration
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /glm-lake-mendota-glm-calibration 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Bulk publish from all-task-skills-dedup
元数据
Slug glm-lake-mendota-glm-calibration
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

glm-calibration 是什么?

Calibrate GLM parameters for water temperature simulation. Use when you need to adjust model parameters to minimize RMSE between simulated and observed tempe... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 72 次。

如何安装 glm-calibration?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install glm-lake-mendota-glm-calibration」即可一键安装,无需额外配置。

glm-calibration 是免费的吗?

是的,glm-calibration 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

glm-calibration 支持哪些平台?

glm-calibration 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 glm-calibration?

由 wu-uk(@wu-uk)开发并维护,当前版本 v0.1.0。

💬 留言讨论