From 091f0f7704e58aacad21cd673281b46b70005398 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 14 Feb 2026 16:25:34 -0700 Subject: [PATCH] feat: add decoding for ICE PAST HR and ICE INTMT remarks Co-authored-by: aider (gemini/gemini-2.5-pro) --- metar.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/metar.html b/metar.html index 62975d2..746d533 100644 --- a/metar.html +++ b/metar.html @@ -343,6 +343,18 @@ match: p => p[0] === 'CVCTV' && p.length > 2 && p[1] === 'CLD' && p[2] === 'EMBD', decode: p => ({ consumed: 3, text: ` - CVCTV CLD EMBD: Convective cloud embedded in stratiform layer` }) }, + // ICE + { + match: p => p[0] === 'ICE', + decode: p => { + if (p.length > 2 && p[1] === 'PAST' && p[2] === 'HR') { + return { consumed: 3, text: ` - ICE PAST HR: Ice observed in the past hour` }; + } + if (p.length > 1 && p[1] === 'INTMT') { + return { consumed: 2, text: ` - ICE INTMT: Intermittent ice observed` }; + } + } + }, // DENSITY ALT { match: p => p[0] === 'DENSITY' && p.length > 2 && p[1] === 'ALT' && p[2].endsWith('FT'),