glm-evaluator
A skill to process GLM NetCDF output and calculate specific RMSE metrics by merging with field observations.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 93
- Forks
- 8
01 前言 Front Matter
- name
- glm-evaluator
- description
- A skill to process GLM NetCDF output and calculate specific RMSE metrics by merging with field observations.
03 SKILL.md 正文
GLM Evaluator
Overview
Evaluating GLM requires comparing simulated temperature profiles with field observations. The comparison must be done at the same datetime and depth.
Key Steps
- Read Observations: Load observation data (e.g., from
field_temp_oxy.csv). Convert timestamps to datetime and round depths if required. - Read GLM Output: Use
netCDF4to readoutput.nc. - Extract Data:
time: Simulation time steps.z: Vertical coordinates of layers (usually variable over time).temp: Temperature in each layer.
- Merge Data: For each observation point (time, depth), find the corresponding simulated temperature.
- Rounding: The task requires matching by rounded depth.
- Calculate RMSE:
RMSE = sqrt(mean((obs - sim)^2))
Python Example (NetCDF to DataFrame)
import pandas as pd
import numpy as np
from netCDF4 import Dataset
def get_simulated_temp(nc_path, obs_df):
nc = Dataset(nc_path)
time = nc.variables['time'][:]
# time units like "hours since 2009-01-01 00:00:00"
base_time = pd.to_datetime("2009-01-01 00:00:00")
sim_times = base_time + pd.to_timedelta(time, unit='H')
# temp is usually [time, depth]
# z is usually [time, depth]
# ... extraction logic ...
Considerations
- Depth Matching: GLM uses a lagrangian layer approach, meaning layer thicknesses can change. To get temperature at a specific depth, find the layer that contains that depth or use the layer closest to the target depth.
- RMSE Filters: Apply seasonal (e.g., summer months June-Sept) or depth-based filters (e.g., depth >= 13m) before calculation.
- Reporting: Export final metrics to a JSON file as required by the task.
04 同仓库更多 Skills
object_counter
Count occurrences of an object in the image using computer vision algorithm.
travel-planning-workflow
Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.
bundled-dataset-search-tool
invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.
glm-output
Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final /root/metrics.json.
glm-calibration
Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.
glm-basics
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.