跳到正文
Skillpedia
网页抓取48k · #6147

weather-model-run-discovery

它能做什么

这个工具用于查找最新、最完整的天气预报。它在下载之前会先检查哪些预报数据已经存在,确保你拿到的是最新且最可靠的信息。

适用场景

  • ✓当你需要 GFS 或 HRRR 等模式的最新预报时。
  • ✓当最新的预报还不完整或仍在更新中时。
  • ✓当你需要比较来自 AWS、Google、Azure 的数据,并确认它们来自同一次预报运行时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/weather-model-run-discovery/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/weather-model-run-discovery/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“查找 HRRR 模式最新的预报,覆盖未来 24 小时,并包含地面数据。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会检查多个天气预报数据源。它会寻找包含所有必要信息(例如不同时次和数据类型)的最新预报,然后再确定使用哪一个。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Weather Model Run Discovery

Overview

Resolve a numerical weather prediction run before downloading model fields. Probe exact objects or narrow prefixes, verify a request-specific completion contract, and return the newest qualifying initialization with its source metadata.

This skill decides which run and objects exist. Use weather-model-data-fetching afterward to transfer or subset the data.

When to Use This Skill

  • An application needs the newest usable GFS, GEFS, HRRR, RAP, NAM, or similar model cycle.
  • The nominal latest cycle returns 404, has only early forecast hours, or is still changing.
  • Equivalent AWS, NOMADS, Google, Azure, or other mirrors must be compared without silently mixing runs.
  • A scheduled job needs a bounded fallback to an older complete cycle.
  • The resolved run and provider must be recorded for later reproduction.

Do not activate this skill when the initialization is already fixed or when the task is to download, decode, or interpret model variables.

Define Complete Before Probing

Collect the following request contract:

  • model, domain, product, and ensemble member;
  • legal UTC cycle hours and cycle interval;
  • required forecast hours;
  • required companion objects, such as pressure and surface products;
  • required inventory or index sidecars;
  • provider priority and whether cross-provider fallback is allowed;
  • maximum lookback, maximum probes, and freshness requirement.

A run is complete only when every sentinel required by the consumer exists. Examples include:

  • one product at one forecast hour for a single-image job;
  • both pressure-level and surface files for a sounding;
  • the terminal forecast hour needed by a time series;
  • every required member for an ensemble statistic.

The presence of forecast hour zero does not prove that a run is complete.

Discovery Workflow

  1. Normalize the current time and all candidate initialization times to UTC.
  2. Enumerate only legal cycles, newest first, within the lookback bound.
  3. Build documented object keys for the exact model, product, member, and forecast hour. Never recursively scan an entire bucket.
  4. Probe exact objects with HeadObject, HTTP HEAD, or a narrow paginated prefix listing. A probe should retrieve metadata, not the model payload.
  5. Require every sentinel and sidecar in the completion contract. Reject zero- length or obviously placeholder objects.
  6. For a live mirror that may expose objects before publication finishes, repeat the metadata probe after a short bounded interval and require stable size and object identity.
  7. Select the first complete candidate. A fallback provider must refer to the same initialization, product, member, and forecast hour.
  8. Emit a resolution record before starting the download.

Use a provider's documented cycle status page as supporting evidence, not as a substitute for probing the exact objects the consumer requires.

Minimal Resolver Example

Keep provider-specific key construction separate from the selection rule. This example accepts a metadata-only probe callback so it can be used with S3, HTTP, or a test fixture.

from datetime import datetime, timedelta, timezone


def candidate_cycles(now, cycle_hours, lookback):
    now = now.astimezone(timezone.utc).replace(minute=0, second=0, microsecond=0)
    allowed = sorted(set(cycle_hours), reverse=True)
    candidates = []
    for days_back in range((lookback // 24) + 2):
        day = (now - timedelta(days=days_back)).date()
        for hour in allowed:
            cycle = datetime(day.year, day.month, day.day, hour, tzinfo=timezone.utc)
            if cycle <= now and now - cycle <= timedelta(hours=lookback):
                candidates.append(cycle)
    return sorted(set(candidates), reverse=True)


def resolve_latest(now, cycle_hours, lookback, required_objects, probe):
    """Return one complete run; probe(uri) returns metadata or None."""
    attempts = []
    for cycle in candidate_cycles(now, cycle_hours, lookback):
        requested = required_objects(cycle)
        found = {name: probe(uri) for name, uri in requested.items()}
        missing = [name for name, metadata in found.items() if not metadata]
        attempts.append({"cycle": cycle.isoformat(), "missing": missing})
        if not missing:
            return {
                "initialization": cycle.isoformat(),
                "objects": [

…
常见问题

什么是“数值天气预报运行周期”?

它是指计算机模式在特定时间生成的一整套天气预报数据。

为什么不直接下载数据?

把所有数据都下载下来既耗时又没必要。这个工具会先找出可用的最完整预报,从而节省时间和资源。

“不下载完整数据载荷”是什么意思?

意思是工具只检查预报文件是否存在以及元数据(如文件大小和日期),而不传输完整的数据。完整数据往往非常大。

详情

作者的原始描述

Resolve the newest complete numerical weather prediction cycle and forecast objects across provider mirrors without downloading full payloads.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#6147
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能