feat: Add support for VIA remarks in METAR decoder
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -277,6 +277,10 @@
|
|||||||
decoded.push(` - ${decodeObscurationRemark(part)}`);
|
decoded.push(` - ${decodeObscurationRemark(part)}`);
|
||||||
} else if (part.match(/^([A-Z]{2}\d)+$/)) {
|
} else if (part.match(/^([A-Z]{2}\d)+$/)) {
|
||||||
decoded.push(` - ${decodeCloudTypesRemark(part, metarString)}`);
|
decoded.push(` - ${decodeCloudTypesRemark(part, metarString)}`);
|
||||||
|
} else if (part === 'VIA' && i + 1 < parts.length) {
|
||||||
|
const location = parts[i+1];
|
||||||
|
decoded.push(` - VIA ${location}: via ${location}`);
|
||||||
|
i++; // Consume location
|
||||||
} else if (part === 'VIRGA' && i + 1 < parts.length && parts[i+1] === 'ALQDS') {
|
} else if (part === 'VIRGA' && i + 1 < parts.length && parts[i+1] === 'ALQDS') {
|
||||||
decoded.push(` - VIRGA ALQDS: Virga in all quadrants`);
|
decoded.push(` - VIRGA ALQDS: Virga in all quadrants`);
|
||||||
i++; // Consume ALQDS
|
i++; // Consume ALQDS
|
||||||
|
|||||||
Reference in New Issue
Block a user