Skip to content
Skills Library
Science & research · Analysis

verify

/verify

Score a forecast against observations on a shared grid or shared stations, cell by cell: event hits at a threshold, bias (forecast − obs), or mean absolute error. Writes the metric field as a Zarr and prints a regional score. Use for forecast skill maps and event verification.

Licence
MIT
Last repository change
24.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
2
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 24.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 2 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/verify.py, tests/test_verify.py

What it does and when to use it

Score a forecast against observations on a shared grid or shared stations, cell by cell: event hits at a threshold, bias (forecast − obs), or mean absolute error. Writes the metric field as a Zarr and prints a regional score. Use for forecast skill maps and event verification.

Original author description

Score a forecast against observations on a shared grid or shared stations, cell by cell: event hits at a threshold, bias (forecast − obs), or mean absolute error. Writes the metric field as a Zarr and prints a regional score. Use for forecast skill maps and event verification.

How it works

  1. Usage
Original SKILL.md headings · 40 lines, 423 words
SKILL.md preview
---
name: verify
description: "Score a forecast against observations on a shared grid or shared stations, cell by cell: event hits at a threshold, bias (forecast − obs), or mean absolute error. Writes the metric field as a Zarr and prints a regional score. Use for forecast skill maps and event verification."
license: MIT
compatibility: Requires Python 3.12 and uv.
allowed-tools: Bash(uv run ${CLAUDE_SKILL_DIR}/scripts/verify.py *)
metadata:
  version: "0.0.5"
  catalog-group: transforms
---

# verify

Compares a forecast with observations cell by cell (or station by station) and writes one metric field.

## Usage

```bash
uv run ${CLAUDE_SKILL_DIR}/scripts/verify.py --forecast FC.zarr --obs OBS.zarr [--metric hits|bias|mae] [-v NAME] [--threshold 1] -o OUT.zarr
```

### Arguments
- `--forecast` — forecast Zarr.
- `--obs` — observation Zarr on the forecast's grid spacing (or the same stations).
- `--metric` — `hits` (event classification), `bias` (forecast − obs), or `mae` (|forecast − obs|). Default: `hits`.
- `--variable`, `-v` — variable name in both inputs. Default: each input's first usable variable (names may differ).
- `--threshold` — event cutoff for `hits`, in the forecast's units: an event is value ≥ threshold. Default: `1`. Ignored (with a stderr note) for other metrics.
- `--output`, `-o` — output Zarr.

### Output
- One variable: `event_hit`, `bias`, or `mae`, float32. `event_hit` is `1` hit (both ≥ threshold), `-1` disagree (only one is), `0` both below, with CF `flag_values` / `flag_meanings`.
- `bias` and `mae` are in the forecast's units (a temperature error is `delta_degC`).
- NaN in either input stays NaN and is left out of the score.
- Stdout prints the score: hit rate = hits / observed events, or a cos-latitude-weighted mean of bias / MAE (a plain mean on stations). Also stamped as `verify_score_summary`.

### Notes
- Grid spacing must match: a different lat or lon spacing exits 2. Put the obs on the forecast grid (for fine obs, an area mean such as `coarsen --reference-grid FC.zarr --method conservative`), not the forecast on the obs grid.
- Inputs keep only shared labels (inner join); no overlap on a dim exits 2 and prints both ranges. Single-time inputs must carry the same date.
- A forecast `step` dim exits 2 unless the obs have `step`: convert leads to valid times first.
- Ensemble `number` is averaged first, so every metric scores the ensemble mean; a NaN member makes that cell NaN.
- Obs are converted to the forecast's units. Incompatible units (an `mm` total against an `mm day-1` rate), or units on only one input, exit 2. For a precip threshold in mm, give both inputs as period totals.
- Stations: sample the grid at the station points first, then pass the sample and the station Zarr. Pairs join on `station_id` and `time`.

### Example
```bash
uv run ${CLAUDE_SKILL_DIR}/scripts/verify.py --forecast s2s_kenya_week2_mm.zarr \
  --obs chirps_kenya_week2_mm_on_s2s.zarr --metric hits -v precip --threshold 10 -o hits_week2.zarr
```
Writes week-2 hit / disagree / below cells for ≥ 10 mm weekly rain over Kenya and prints the hit rate.
Files in this package (3)
  • SKILL.md 3 KB
  • scripts/verify.py 9 KB
  • tests/test_verify.py 11 KB

Versions

RepositoryScoreLicence
This page · rhiza-research/weather-skills100MIT
yonatangross/orchestkit100MIT
yonatangross/orchestkit100MIT
NolwennD/gabier100Apache-2.0
ericrisco/rsc-harness100MIT
sentimony/agentic-workflow100MIT
JoDi-27/JoDi-SDD100MIT
marcel-bich/marcel-bich-claude-marketplace100MIT
kdlbs/kandev100AGPL-3.0

Database snapshot: 13.11.2026 · package version 6aa636828f82 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100difference
    Subtract one weather-skills Zarr from another (A − B), cell by cell, keeping only the coordinates both share and broadcasting over dims only A or only B has. Use for anomalies (a field minus its baseline mean), change maps (scenario minus historical), or forecast minus observations.
  • 95statistical_error_analysis
    Statistical Error Analysis - Analyze measurement errors: absolute error, scientific notation, max value, mean square, and formatting. Use this skill for statistics tasks involving calculate absolute error convert to scientific notation calculate max value calculate mean square…
  • 95experimental_data_processing
    Experimental Data Processing - Process experimental data: absolute error, mean square, max value, scientific notation formatting. Use this skill for experimental physics tasks involving calculate absolute error calculate mean square calculate max value format scientific notation…
  • 95experimental_data_processing
    Experimental Data Processing - Process experimental data: absolute error, mean square, max value, scientific notation formatting. Use this skill for experimental physics tasks involving calculate absolute error calculate mean square calculate max value format scientific notation…
  • 95statistical_error_analysis
    Statistical Error Analysis - Analyze measurement errors: absolute error, scientific notation, max value, mean square, and formatting. Use this skill for statistics tasks involving calculate absolute error convert to scientific notation calculate max value calculate mean square…
  • 100obs-model-comparison
    Compares monthly model output with observations at a site using the obs-model-starter MCP tools, after checking units, time-stamp conventions, missing data and provenance, then explains bias and RMSE with limitations. Use when the user asks how well a model matches observations,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.