@squawk
    Preparing search index...

    Function parseSigmet

    • Parses a single SIGMET record into a structured Sigmet object.

      For general use, prefer parseSigmetBulletin which handles both single records and multi-SIGMET bulletins transparently.

      Automatically detects the SIGMET format (convective, non-convective, or international ICAO) from the content and returns the appropriate variant of the discriminated union.

      Accepts both raw WMO-wrapped messages (with header lines like WSUS32 KKCI) and body-only messages.

      import { parseSigmet } from '@squawk/weather';

      const sigmet = parseSigmet('SIGMET NOVEMBER 3 VALID UNTIL 050200Z\n...');
      if (sigmet.format === 'NONCONVECTIVE') {
      console.log(sigmet.seriesName, sigmet.hazards[0].hazardType);
      }

      Parameters

      • raw: string

        The raw SIGMET string to parse.

      Returns Sigmet

      A parsed Sigmet object.

      If the string cannot be parsed as a valid SIGMET.