weather-observation-fetching
Qué hace
Esta herramienta obtiene datos meteorológicos reales, como los informes de vuelo (METAR) y los datos históricos, de fuentes oficiales. Se asegura de conservar información importante como la identidad de la estación, la hora, las unidades y los indicadores de calidad.
Cuándo usarla
- ✓Cuando necesitas informes meteorológicos recientes de aeropuertos concretos.
- ✓Para obtener datos históricos de superficie de una región o de un país.
- ✓Cuando necesitas información sobre la ubicación, el equipo o el historial de las estaciones meteorológicas.
Link de la skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/weather-observation-fetching/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Dame los informes METAR de las últimas 2 horas de los aeropuertos de São Paulo (CG24) y Río de Janeiro (SBGL).”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La herramienta se conecta a fuentes de datos meteorológicos fiables, como APIs de organismos oficiales. Busca los datos solicitados, mantiene todos los detalles originales y los presenta de forma organizada.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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:
- Resolve the station using the current station inventory and its USAF/WBAN identifiers.
- Confirm that the station's coverage overlaps the requested time range.
- Use bulk HTTPS files for a large historical request; avoid one network call per observation.
…
Preguntas frecuentes
¿Qué son los METAR?
Los METAR son informes estandarizados de observaciones meteorológicas en aeropuertos, que se usan principalmente en aviación.
¿Qué tipos de datos meteorológicos obtiene?
Obtiene observaciones de superficie (como los METAR) y datos de altura (radiosondeos), además de metadatos de las estaciones. No obtiene pronósticos ni imágenes de satélite.
¿Por qué es importante conservar la 'identidad de la estación' y los 'indicadores de calidad'?
Conservar la identidad te permite saber exactamente de dónde proceden los datos. Los indicadores de calidad muestran si los datos son fiables o si podrían tener problemas.
Detalles
Descripción original del autor
Retrieve surface and upper-air weather observations from authoritative APIs and archives with station identity, time, units, and quality flags preserved.
Popularidad
- Estrellas en GitHub
- 48 mil
- Posición en el ranking
- #6148
- Licencia
- MIT
- Actualizada
- 15/10/2026
Comentarios
- …
Más skills de este repositorio
00-andruia-consultant
48 milAyuda a tu agente a iniciar o mejorar proyectos de IA. Analiza código, sugiere herramientas y crea planes de acción en español.
007
48 milPermite que tu agente realice auditorías de seguridad y modelado de amenazas. Es útil para proteger proyectos contra ataques y vulnerabilidades.
10-andruia-skill-smith
48 milAyuda a tu agente a crear o mejorar herramientas de IA. Define cómo funcionan, escribe la documentación y valida la estructura.
20-andruia-niche-intelligence
48 milPermite que tu agente cree un resumen de un sector específico. Es útil para entender su contexto, normas, patrones de uso y riesgos, usando fuentes fiables.
Skills parecidas
tavily
394 milAyuda a tu agente a buscar en la web con Tavily y extraer el texto de páginas web concretas, con opciones de profundidad, dominios y fechas.
blogwatcher
394 milPermite que tu agente siga blogs y feeds RSS o Atom, los revise en busca de artículos nuevos y marque los que ya has leído.
data-scraper-agent
280 milAyuda a tu agente a recopilar datos automáticamente de cualquier fuente pública. Puede programarse, enriquecer la información y guardar resultados. Útil para monitorizar o seguir datos en línea.