From 48527dae50c637d47b6a173f431a9e468bc16a97 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 14 Feb 2026 16:41:22 -0700 Subject: [PATCH] feat: Decode cloud top and direction remarks Co-authored-by: aider (gemini/gemini-2.5-pro) --- metar.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/metar.html b/metar.html index e19daa1..5bb2e9a 100644 --- a/metar.html +++ b/metar.html @@ -465,6 +465,9 @@ } else if (mod === 'TR') { text = ` - ${cloudCode} TR: ${cloudName} clouds are translucent (thin)`; consumed = 2; + } else if (mod === 'TOP' && p.length > 2 && isDirection(p[2])) { + text = ` - ${cloudCode} TOP ${p[2]}: ${cloudName} cloud tops to the ${decodeDirection(p[2])}`; + consumed = 3; } else if (mod === 'DSNT' && p.length > 2 && isDirection(p[2])) { text = ` - ${cloudCode} DSNT ${p[2]}: ${cloudName} distant ${decodeDirection(p[2])}`; consumed = 3;