Перейти к содержанию
Skillpedia
Веб-скрапинг48k · #6148

weather-observation-fetching

Что он делает

Этот инструмент получает и загружает фактические данные о погоде, например авиационные отчеты (METAR) и исторические данные, из официальных источников. Он сохраняет важную информацию: идентификатор станции, время, единицы измерения и показатели качества.

Когда использовать

  • ✓Когда нужны свежие метеорологические сводки для конкретных аэропортов.
  • ✓Когда нужны исторические данные наблюдений по региону или стране.
  • ✓Когда нужна информация о местоположении, оборудовании или истории метеостанций.

Ссылка на скилл

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/weather-observation-fetching/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/weather-observation-fetching/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Предоставь мне отчеты METAR за последние 2 часа для аэропортов Сан-Паулу (CG24) и Рио-де-Жанейро (SBGL).”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Инструмент подключается к надежным источникам данных о погоде, например к государственным API. Он ищет запрошенные данные, сохраняет все исходные детали и представляет их в структурированном виде.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с GitHub.

Weather Observation Fetching

Overview

Retrieve measured surface and upper-air weather reports without losing station identity, observation time, units, raw values, or provider quality flags. Pick the source by observation type and retention need, then validate the returned records before normalization.

This skill covers METARs, historical surface observations, radiosondes, and station metadata. It excludes model output, radar volumes, and satellite imagery.

When to Use This Skill

  • A task needs recent METAR observations for named stations or a small region.
  • Historical hourly or synoptic surface data is needed from NOAA NCEI.
  • A sounding workflow needs observed radiosonde profiles rather than model profiles.
  • Station identifiers, relocations, instruments, or metadata must be resolved.
  • A fetch returned duplicate, stale, unit-ambiguous, or quality-flagged values.

Do not use forecast products as observations, and do not substitute a nearby model grid point for a missing station report without explicit approval.

Choose the Source

Need Preferred source Notes
Recent aviation surface reports NOAA Aviation Weather Center Data API Query a small station/time set; use published cache files for bulk current data.
Historical global surface reports NOAA NCEI Integrated Surface Database (ISD) Preserve USAF/WBAN identity, units, and QC fields.
Historical or recent radiosondes NOAA NCEI IGRA Use the station inventory and retain level and QC metadata.
Station history and identifier changes NOAA NCEI station history/HOMR Resolve moves, renames, and observing-platform changes.

Prefer an existing project adapter when it already handles the provider's schema, retries, and cache. Record the exact endpoint or archive object used.

Define the Observation Request

Resolve these values before fetching:

  • observation type and variables;
  • station identifier system, not just the identifier string;
  • start and end instants in UTC, including interval inclusivity;
  • maximum acceptable observation age;
  • raw, decoded, or both output forms;
  • required quality flags and policy for rejected values;
  • output units and missing-value representation;
  • cache location and retention.

For spatial queries, also define the search geometry, distance limit, and how a station is selected. Return the selected station and distance rather than silently using the nearest report.

Fetch Recent METARs

The Aviation Weather Center exposes machine-readable METAR data under /api/data/metar. Send a descriptive user agent, keep the query narrow, and handle a valid 204 No Content separately from an error.

import json
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import Request, urlopen


def fetch_metars(stations, hours=2):
    station_ids = sorted({station.strip().upper() for station in stations})
    if not station_ids or any(len(station) != 4 for station in station_ids):
        raise ValueError("use one or more four-character ICAO station IDs")
    if not 1 <= hours <= 24:
        raise ValueError("hours must be between 1 and 24 for this narrow query")

    query = urlencode({
        "ids": ",".join(station_ids),
        "format": "json",
        "hours": hours,
    })
    request = Request(
        f"https://aviationweather.gov/api/data/metar?{query}",
        headers={"User-Agent": "weather-observation-fetching/1.0 contact@example.org"},
    )
    try:
        with urlopen(request, timeout=30) as response:
            if response.status == 204:
                return []
            records = json.load(response)
    except HTTPError as exc:
        if exc.code == 429:
            raise RuntimeError("AWC rate limit reached; honor Retry-After") from exc
        raise

    if not isinstance(records, list):
        raise RuntimeError("unexpected METAR response shape")
    return records

Replace the example contact address with an appropriate project contact. For a large current snapshot, download the provider's compressed cache file once instead of issuing many station queries.

Fetch Historical Surface Data

For ISD:

  1. Resolve the station using the current station inventory and its USAF/WBAN identifiers.
  2. Confirm that the station's coverage overlaps the requested time range.
  3. Use bulk HTTPS files for a large historical request; avoid one network call per observation.

…

Частые вопросы

Что такое METAR?

METAR это стандартизированные отчеты о наблюдениях за погодой в аэропортах, которые в основном используются в авиации.

Какие типы данных о погоде он получает?

Он получает данные приземных наблюдений (например, METAR), данные верхних слоев атмосферы (радиозонды), а также метаданные станций. Прогнозы и спутниковые снимки он не загружает.

Почему важно сохранять «идентификатор станции» и «показатели качества»?

Идентификатор позволяет точно знать, откуда пришли данные. Показатели качества показывают, можно ли доверять данным или в них могут быть ошибки.

Подробности

Оригинальное описание автора

Retrieve surface and upper-air weather observations from authoritative APIs and archives with station identity, time, units, and quality flags preserved.

repo: sickn33/agentic-awesome-skills

Популярность

Звёзды на GitHub
48k
Место в рейтинге
#6148
Лицензия
MIT
Обновлён
15.10.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы