Skip to content
heavenly-techPublic

About

Chile-first aviation weather desk: METAR, TAF, GRAMET, GAMET, WRF, synoptic charts, and Cesium 3D.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heavenly Weather

Chile-first aviation briefing desk for METAR, TAF, GRAMET, GAMET, MeteoChile WRF point forecasts, synoptic charts, and a Cesium 3D weather field. Step 1 adds an Aguacero-style Andes ceiling viewer centred on SCTB at /andes. Public hostname: weather.heavenly.cl. There is no user login. Licensed under MIT (Heavenly Tech / Pablo Andalaft).

Andes ceiling viewer (/andes)

Feature Description
Domain 32.1–34.8°S, 71.8–70.0°W
Models GFS, ECMWF IFS 0.25°, ICON, GEM (Open-Meteo); unavailable models show a warning
Headline Ceiling ft AGL over terrain, FAA flight-category colours, mountain-obscuration tint
Controls Linked altitude (ft MSL ↔ hPa), valid-time slider, model picker
Grid Coarse 11×8 model samples, bilinear regrid + fine Open-Meteo elevation; batched cache (ANDES_GRID_*)
Timelines SCTB, SCEL, SCVH, SCPD — each model vs METAR (proxy METAR labelled with distance)
Generated products Model METAR/TAF stamped MODEL OUTPUT — NOT OFFICIAL, logged to JSONL

Ceiling derivation

Documented in server-rs/src/ceiling.rs. Summary:

  1. Skip pressure levels above surface_pressure or with geopotential height ≤ terrain (underground artefacts in the Andes).
  2. Interpolate the BKN (62.5 %) crossing in height between adjacent layers (linear in cover vs geopotential height); prefer cloud_cover_low/mid/high where present.
  3. ICON convective_cloud_base is metres AMSL (ignore ≤ 0 or ≤ −500); never add terrain; take the lower MSL base vs stratiform scan (does not override).
  4. Convert to ft AGL; flag obscuration when base MSL ≤ terrain; categories use ceiling and model visibility when present.

Screenshots

Captured with Playwright on the running app (no Cesium Ion token — ellipsoid terrain + OpenStreetMap). Regenerate: npm run build && CAPTURE_BASE_URL=http://127.0.0.1:4310 npm run capture:andes.

Viewer Asset
Ceiling map Ceiling map
Altitude slice Altitude slice
SCEL timeline section Timeline
Time slider Time slider GIF

How it was validated

Repeatable pipeline: npm run validate:ceilings → writes docs/validation/scel-YYYY-MM-DD/ (AWC METAR JSON, Open-Meteo past_days=3 model JSON, summary.json, chart).

Data window: SCEL METARs from AWC (hours=72, 2026-11-14 → 2026-11-17 UTC) plus companion pulls for SCVM and SCPD (awc-metars-scvm.json, awc-metars-scpd.json). Models: Open-Meteo forecast API with past_days=3, hourly pressure-level cloud/RH/height/surface_pressure, run through ceilingFromHourly at SCEL elevation (underground levels skipped).

Smoke test only — one dominant stratus episode from Open-Meteo past_days stitched short-range states; not a skill score. Hourly UTC pairing over all METAR hours; contingency on MVFR/IFR/LIFR events (POD, FAR, CSI, HSS).

Stats (2026-11-17 run): docs/validation/scel-2026-11-17/stats-table.md

Model Cat agree POD FAR CSI HSS Bias MAE ft N
GFS 84.3% (43/51) 0.69 0.08 0.65 0.71 0.75 818 12
ECMWF IFS 0.25° 74.5% (38/51) 0.69 0.00 0.69 0.75 0.69 861 12
DWD ICON 76.5% (39/51) 0.81 0.24 0.65 0.69 1.06 1069 15
GEM 70.6% (36/51) 0.25 0.00 0.25 0.31 0.25 493 5

Sample 3-hourly rows (full table in summary.json):

Valid (UTC) METAR ft Cat GFS ft ECMWF ft ICON ft GEM ft
2026-11-15 03:00 1500 MVFR 997 1007 255 266
2026-11-15 06:00 500 IFR 987 1026 265 276
2026-11-15 09:00 4000 VFR 997 987 4199 249
2026-11-15 12:00 3000 MVFR 1040 1056 3740 1037

SCEL ceiling validation chart

Open-Meteo load (formula): weighted ≈ locations × max(1, vars/10) × max(1, days/14). The coarse map now requests 17 hourly variables (18 on ICON, which adds convective_cloud_base): six pressure levels of cloud cover and height, plus surface pressure, precipitation, rain, showers, and low cloud. 88 pts × 17 vars → ~150 weighted calls/model (88 × 1.7; ICON ~158). Those 88 points are still two HTTP calls (batch size 60). A cold load adds one probe point call per model.

Where it fails (honest):

  • Serial correlation: effectively one stratus episode in the window — do not infer skill.
  • MAE still ~0.5–1.1k ft where ceilings exist — pressure-level proxy, not a cloud base field.
  • past_days hours are Open-Meteo archived states, not a formal archived forecast run.
  • Clear-sky METAR (no BKN/OVC base) vs model “unlimited” is only partially aligned in scoring.

Honest gaps: No official cloud_base from ECMWF/GFS on Open-Meteo; ceilings use pressure-level cover. Underground 1000/975 hPa layers are ignored via surface_pressure and terrain height (see server-rs/src/ceiling.rs).

DGAC product research: docs/dgac-chile-products.md.

Run locally

npm install
cp .env.example .env.local   # optional MeteoChile token
cargo run --bin weather      # API on port 4310
npm run dev                  # Vite on 43123, proxying /api to port 4310
npm test                     # client tests (no network)

The Vite dev server binds 0.0.0.0:43123 and proxies /api to the Rust binary on port 4310.

Production (weather.heavenly.cl)

Same nginx-proxy stack as flight.heavenly.cl and mora.oficinaslascondes.cl. Internal listen port is 4310. The compose file sets VIRTUAL_HOST, LETSENCRYPT_HOST, and VIRTUAL_PORT and joins the external proxy_network.

Build the image on omarchibald or the Mac mini (linux/amd64), not on the VPS:

docker build --platform linux/amd64 -t app-heavenly-weather:latest .
docker save app-heavenly-weather:latest | ssh heavenly docker load

Load Infrastructure's prebuilt app-heavenly-weather:node and check its digest before the swap. The digest and the rollback command are in docs/cutover-checklist.md.

On a machine that can ssh heavenly, after that image is loaded:

./deploy.sh

That updates /opt/stacks/app-heavenly-weather and runs docker compose up -d --no-build. It does not build. Rollback and the staging dual run are in docs/cutover-checklist.md.

Optional environment next to compose (MeteoChile WRF-DMC). Without these, the WRF page uses live Open-Meteo GFS:

Variable Purpose
METEOCHILE_USER Email registered with MeteoChile Servicios Climáticos
METEOCHILE_TOKEN Personal token for WRF-DMC getDatosModelo

Health: http://127.0.0.1:4310/api/health inside the container.

What is live vs mocked

| Product | Live source | Fallback | | --- | --- | | METAR / TAF | NOAA Aviation Weather Center | Clearly marked mock observation/forecast | | GRAMET | Derived from Open-Meteo GFS pressure levels along the route | Mock sounding | | GAMET | Derived GAMET-style bulletin from GFS + AWC SIGMETs (official DGAC GAMET is OPMET-only) | Mock bulletin | | Point forecast | MeteoChile WRF-DMC when a token is set | Open-Meteo GFS, then mock | | Synoptic | NOAA WPC South America charts, proxied | Error state with a link to NOAA | | 3D field | Live METARs + GFS column on a Cesium globe (OpenStreetMap tiles) | Mock stations |

Notes

  • Chile-first ICAO list (SCEL, SCFA, SCTE, SCCI, …) plus Lima and Ezeiza for international GRAMETs.
  • Every product card shows Live / Fallback / Derived / Mock.
  • 3D visualization is Cesium only (no Three.js).
  • Not a certified flight-briefing source. Cross-check OPMET before you fly.

About

Chile-first aviation weather desk: METAR, TAF, GRAMET, GAMET, WRF, synoptic charts, and Cesium 3D.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages