glm-basics
/glm-basics
Wprowadza w kalibrację General Lake Model (GLM): sprawdza glm3.nml, sposób uruchamiania modelu i ważne pliki przed kalibracją i oceną wyników.
- Autor
- cxcscmu ↗
- Repozytorium
- SkillLearnBench ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 02.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 02.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wprowadza w kalibrację General Lake Model (GLM): sprawdza glm3.nml, sposób uruchamiania modelu i ważne pliki przed kalibracją i oceną wyników.
Oryginalny opis (EN)
A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.
Jak działa
- Overview
- Suggested Skill Flow
- Running GLM
- Input File Structure
- Configuration File Format
- Modifying Parameters with Python
- Common Issues
- Best Practices
Podgląd SKILL.md
---
name: glm-basics
description: A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.
license: MIT
---
# GLM Basics Guide
## Overview
GLM (General Lake Model) is a 1D hydrodynamic model that simulates vertical temperature and mixing dynamics in lakes. It reads configuration from a namelist file and produces NetCDF output.
## Suggested Skill Flow
For benchmark calibration tasks, use the GLM skills in this order:
1. `glm-basics`: inspect files, confirm run mechanics, and identify the task's editable/configuration surface
2. `glm-calibration`: search for a physically passing parameter set within the allowed scope
3. `glm-output`: compute the final exact task metrics and write `/root/metrics.json`
This flow tends to work better than jumping straight into calibration or reporting without first checking the run setup and file layout. Once calibration has found a configuration that already passes every task metric, stop searching and move directly to `glm-output` rather than spending more runs polishing an already passing point.
## Running GLM
```bash
cd /root
glm
```
GLM reads `glm3.nml` in the current directory and produces output in `output/output.nc`.
## Input File Structure
| File | Description |
|------|-------------|
| `glm3.nml` | Main configuration file (Fortran namelist format) |
| `bcs/*.csv` | Boundary condition files (meteorology, inflows, outflows) |
## Configuration File Format
`glm3.nml` uses Fortran namelist format with multiple sections:
```fortran
&glm_setup
sim_name = 'LakeName'
max_layers = 500
/
&light
Kw = 0.3
/
&mixing
coef_mix_hyp = 0.5
/
&meteorology
meteo_fl = 'bcs/meteo.csv'
wind_factor = 1
lw_factor = 1
ch = 0.0013
/
&inflow
inflow_fl = 'bcs/inflow1.csv','bcs/inflow2.csv'
/
&outflow
outflow_fl = 'bcs/outflow.csv'
/
```
## Modifying Parameters with Python
```python
import re
def modify_nml(nml_path, params):
with open(nml_path, 'r') as f:
content = f.read()
for param, value in params.items():
pattern = rf"({param}\s*=\s*)[\d\.\-e]+"
replacement = rf"\g<1>{value}"
content = re.sub(pattern, replacement, content)
with open(nml_path, 'w') as f:
f.write(content)
# Example usage
modify_nml('glm3.nml', {'Kw': 0.25, 'wind_factor': 0.9})
```
## Common Issues
| Issue | Cause | Solution |
|-------|-------|----------|
| GLM fails to start | Missing input files | Check bcs/ directory |
| No output generated | Invalid nml syntax | Check namelist format |
| Simulation crashes | Unrealistic parameters | Use values within valid ranges |
## Best Practices
- Always backup `glm3.nml` before modifying
- Run GLM after each parameter change to verify it works
- Check `output/` directory for results after each run
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · cxcscmu/SkillLearnBench | 100 | MIT |
| benchflow-ai/skillsbench | 100 | Apache-2.0 |
| cxcscmu/SkillLearnBench | 95 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki fa6e4da78699 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90glm_lake_mendota_setup
Wyjaśnia konfigurację modelu GLM dla jeziora Mendota: odczyt i zmianę pliku glm3.nml, parametry dozwolone do modyfikacji i strukturę modelu, przed uruchomieniem lub kalibracją. - 100glm-fundamentals
Pokazuje, jak uruchamiać General Lake Model (GLM) do symulacji temperatury wody w jeziorze, czytać pliki .nml, interpretować wyniki NetCDF i usuwać błędy uruchomienia. - 100glm-calibration
Kalibruje parametry GLM do symulacji temperatury wody, minimalizując RMSE między temperaturami symulowanymi a zmierzonymi. - 100glm
Deleguje zadania do GLM, wycofanego modelu działającego bez interfejsu w Claude Code, wyłącznie na wyraźne polecenie użytkownika. - 100glm-output
Odczytuje i przetwarza pliki wyjściowe GLM: wyciąga temperatury z NetCDF, przelicza współrzędne głębokości i liczy RMSE względem obserwacji. - 90collaborate-with-glm-5
Pomaga dobrać model GLM-5 jako wykonawcę lub recenzenta, przygotować mu zadanie i sprawdzić wynik.