A parsed SIGMET (Significant Meteorological Information) advisory.
This is a discriminated union of the three SIGMET formats. Use the format field to narrow the type:
format
const sigmet = parseSigmet(raw);if (sigmet.format === 'CONVECTIVE') { console.log(sigmet.region, sigmet.number);} else if (sigmet.format === 'NONCONVECTIVE') { console.log(sigmet.seriesName, sigmet.hazards);} else { console.log(sigmet.firCode, sigmet.phenomena);} Copy
const sigmet = parseSigmet(raw);if (sigmet.format === 'CONVECTIVE') { console.log(sigmet.region, sigmet.number);} else if (sigmet.format === 'NONCONVECTIVE') { console.log(sigmet.seriesName, sigmet.hazards);} else { console.log(sigmet.firCode, sigmet.phenomena);}
A parsed SIGMET (Significant Meteorological Information) advisory.
This is a discriminated union of the three SIGMET formats. Use the
formatfield to narrow the type: