{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://aviationweather.gov/data/schema/giarmet1_0.json",
    "description": "Set of G-AIRMETs",
    "type": "array",
    "default": [],
    "title": "G-AIRMETs",
    "items": {
        "type": "object",
        "title": "G-AIRMET",
        "required": [
            "forecastId",
            "geometryId",
            "tag",
            "forecastHour",
            "validTime",
            "hazard",
            "geometryType",
            "latlonpairs",
            "frequency",
            "severity",
            "due_to",
            "status",
            "fzltop",
            "fzlbase",
            "receiptTime",
            "issueTime",
            "expireTime",
            "product",
            "geom",
            "coords"
        ],
        "properties": {
            "forecastId": {
                "type": "integer",
                "title": "Unique id number (autoincrement)",
                "examples": [
                    16268,
                    16163
                ]
            },
            "geometryId": {
                "type": "integer",
                "title": "Unique id number for the geometry (autoincrement)",
                "examples": [
                    871983,
                    871984
                ]
            },
            "tag": {
                "type": "string",
                "title": "The unique ID for the product area and location, usually a number followed by 'E', 'C', or 'W' for region",
                "examples": [
                    "1C",
                    "4E",
                    "2W"
                ]

            },
            "forecastHour": {
                "type": "integer",
                "title": "The forecast hour taken from the initial product issuance (21Z cycle, 03Z product would be 6",
                "examples": [
                    0,
                    3,
                    6,
                    9,
                    12
                ]
            },
            "validTime": {
                "type": "string",
                "title": "The valid time of the AIRMET snapshot",
                "examples": [
                    "2024-12-18T09:00:00Z",
                    "2024-12-18T12:00:00Z"
                ]
            },
            "hazard": {
                "type": "string",
                "title": "The hazard type time of the AIRMET snapshot",
                "enum": ["IFR","MT_OBSC","TURB-HI","TURB-LO","ICE","FZLVL","M_FZLVL","SFC_WND","LLWS"],
                "examples": [
                    "TURB-HI",
                    "ICE"
                ]
            },
            "geometryType": {
                "type": "string",
                "title": "The geometry type: LINE or AREA",
                "enum": ["LINE", "AREA"],
                "examples": [
                    "LINE",
                    "AREA"
                ]
            },
            "latlonpairs": {
                "type": "integer",
                "title": "The number of latitude, longitude pairs in the object",
                "examples": [
                    12,
                    5
                ]
            },
            "frequency": {
                "type": "string",
                "title": "The frequency of occurrence (unused)",
                "default": ""
            },
            "severity": {
                "type": ["string","null"],
                "title": "The severity: 'MOD' or null of latitude, longitude pairs in the object",
                "examples": [
                    "MOD",
                    null
                ]
            },
            "due_to": {
                "type": ["string","null"],
                "title": "Additional information, reason for the AIRMET",
                "examples": [
                    "ICE",
                    "CIG BLW 010/VIS BLW 3SM PCPN/BR/FG",
                    null
                ]
            },
            "status": {
                "type": ["string","null"],
                "title": "The product status",
                "examples": [
                    "NRML",
                    null
                ]
            },
            "top": {
                "type": ["integer","null"],
                "title": "The top altitude of hazard in feet",
                "examples": [
                    12000,
                    30000,
                    null
                ]
            },
            "base": {
                "type": ["integer","string","null"],
                "title": "The base altitude of hazard in feet. It could be 'SFC' for surface level or 'FZL' for freezing level",
                "examples": [
                    1000,
                    3000,
                    "SFC",
                    "FZL",
                    null
                ]
            },
            "fzltop": {
                "type": ["integer","null"],
                "title": "The top altitude of the freezing level in a ICE AIRMET in feet",
                "examples": [
                    12000,
                    9000,
                    null
                ]
            },
            "fzlbase": {
                "type": ["integer","string","null"],
                "title": "The base altitude of the freezing level in a ICE AIRMET in feet. This could be 'SFC' if the surface is below freezing",
                "examples": [
                    12000,
                    9000,
                    "SFC",
                    null
                ]
            },
            "level": {
                "type": ["integer","null"],
                "title": "The altitude of freezing level in feet. Usually these are in 3000 foot increments",
                "examples": [
                    3000,
                    12000,
                    null
                ]
            },
            "receiptTime": {
                "type": "integer",
                "title": "The time the AIRMET was received in epoch time (seconds since 1/1/1970)",
                "examples": [
                    1734540584,
                    1734532490
                ]
            },
            "issueTime": {
                "type": "integer",
                "title": "The time the AIRMET was issued in epoch time (seconds since 1/1/1970)",
                "examples": [
                    1734540480,
                    1734533100
                ]
            },
            "expireTime": {
                "type": "integer",
                "title": "The time the AIRMET expires, typically 6 hours after issuance in epoch time (seconds since 1/1/1970)",
                "examples": [
                    1734555600,
                    1734555600
                ]

            },
            "product": {
                "type": "string",
                "title": "The AIRMET type: SIERRA (IFR), TANGO (turbulence), ZULU (icing)",
                "enum": ["SIERRA", "TANGO", "ZULU"],
                "examples": [
                    "TANGO",
                    "ZULU"
                ]
            },
            "geom": {
                "type": "string",
                "title": "The geometry",
                "enum": ["POLYGON", "LINE"],
                "examples": [
                    "POLYGON",
                    "LINE"
                ]
            },
            "coords": {
                "type": "array",
                "title": "The location of AIRMET area (latitude, longitde points)",
                "items": {
                    "type": "object",
                    "required": [
                        "lat",
                        "lon"
                    ],
                    "properties": {
                        "lat": {
                            "type": "number",
                            "title": "The latitude in degrees",
                            "examples": [
                                63.75,
                                62.95,
                                62.093
                            ]
                        },
                        "lon": {
                            "type": "number",
                            "title": "The longitude in degrees",
                            "examples": [
                                160.5,
                                166,
                                164.25
                            ]
                        }
                    }
                }
            }
        }
    },
    "examples": [
        [{
            "forecastId": 11274,
            "geometryId": 871833,
            "tag": "1W",
            "forecastHour": 3,
            "validTime": "2024-12-18T00:00:00Z",
            "hazard": "TURB-HI",
            "geometryType": "AREA",
            "latlonpairs": 11,
            "frequency": "",
            "severity": "MOD",
            "due_to": "",
            "status": "",
            "top": 42000,
            "base": 25000,
            "fzltop": null,
            "fzlbase": null,
            "level": null,
            "receiptTime": 1734475307,
            "issueTime": 1734475260,
            "expireTime": 1734490800,
            "product": "TANGO",
            "geom": "POLYGON",
            "coords": [
            {
                "lat": 40.97,
                "lon": -108.6
            },
            {
                "lat": 40.84,
                "lon": -104.59
            },
            {
                "lat": 39.7,
                "lon": -103.19
            },
            {
                "lat": 40.67,
                "lon": -101.87
            },
            {
                "lat": 37.07,
                "lon": -102.01
            },
            {
                "lat": 34.88,
                "lon": -103.8
            },
            {
                "lat": 35.13,
                "lon": -104.97
            },
            {
                "lat": 35.36,
                "lon": -106.47
            },
            {
                "lat": 36.51,
                "lon": -107.52
            },
            {
                "lat": 37.69,
                "lon": -108.19
            },
            {
                "lat": 39.07,
                "lon": -108.7
            },
            {
                "lat": 40.97,
                "lon": -108.6
            }
            ]
        },
        {
            "forecastId": 11273,
            "geometryId": 871822,
            "tag": "3E",
            "forecastHour": 3,
            "validTime": "2024-12-18T00:00:00Z",
            "hazard": "MT_OBSC",
            "geometryType": "AREA",
            "latlonpairs": 33,
            "frequency": "",
            "severity": "",
            "due_to": "MTNS OBSC BY PCPN/CLDS/BR",
            "status": "",
            "top": null,
            "base": null,
            "fzltop": null,
            "fzlbase": null,
            "level": null,
            "receiptTime": 1734473447,
            "issueTime": 1734473340,
            "expireTime": 1734490800,
            "product": "SIERRA",
            "geom": "POLYGON",
            "coords": [
            {
                "lat": 49.06,
                "lon": -113.59
            },
            {
                "lat": 47.59,
                "lon": -112.79
            },
            {
                "lat": 45.97,
                "lon": -114.77
            },
            {
                "lat": 44.5,
                "lon": -114.61
            },
            {
                "lat": 43.84,
                "lon": -113.92
            },
            {
                "lat": 44.85,
                "lon": -112.3
            },
            {
                "lat": 44.88,
                "lon": -109.83
            },
            {
                "lat": 43.75,
                "lon": -109.34
            },
            {
                "lat": 42.56,
                "lon": -110.27
            },
            {
                "lat": 41.22,
                "lon": -108.98
            },
            {
                "lat": 39.81,
                "lon": -110.71
            },
            {
                "lat": 39.81,
                "lon": -111.51
            },
            {
                "lat": 41.75,
                "lon": -112.4
            },
            {
                "lat": 41.87,
                "lon": -113.17
            },
            {
                "lat": 40.9,
                "lon": -114.63
            },
            {
                "lat": 40.61,
                "lon": -115.93
            },
            {
                "lat": 41.09,
                "lon": -117
            },
            {
                "lat": 40.99,
                "lon": -119.13
            },
            {
                "lat": 41.84,
                "lon": -120.17
            },
            {
                "lat": 41.33,
                "lon": -121.82
            },
            {
                "lat": 41.68,
                "lon": -122.44
            },
            {
                "lat": 42.55,
                "lon": -122.73
            },
            {
                "lat": 43.38,
                "lon": -122.2
            },
            {
                "lat": 44.08,
                "lon": -120.91
            },
            {
                "lat": 44.8,
                "lon": -120.12
            },
            {
                "lat": 44.99,
                "lon": -121.34
            },
            {
                "lat": 44.94,
                "lon": -122.66
            },
            {
                "lat": 44.15,
                "lon": -124.2
            },
            {
                "lat": 44.91,
                "lon": -124.02
            },
            {
                "lat": 46.74,
                "lon": -124.24
            },
            {
                "lat": 48.18,
                "lon": -124.65
            },
            {
                "lat": 49,
                "lon": -122.42
            },
            {
                "lat": 49.03,
                "lon": -114.1
            },
            {
                "lat": 49.06,
                "lon": -113.59
            }
            ]
        },
        {
            "forecastId": 11272,
            "geometryId": 871721,
            "tag": "1C",
            "forecastHour": 3,
            "validTime": "2024-12-18T00:00:00Z",
            "hazard": "FZLVL",
            "geometryType": "LINE",
            "latlonpairs": 22,
            "frequency": "",
            "severity": "",
            "due_to": "",
            "status": "",
            "top": null,
            "base": null,
            "fzltop": null,
            "fzlbase": null,
            "level": 16000,
            "receiptTime": 1734468011,
            "issueTime": 1734468300,
            "expireTime": 1734490800,
            "product": "ZULU",
            "geom": "LINE",
            "coords": [
            {
                "lat": 17,
                "lon": -98.19
            },
            {
                "lat": 17.25,
                "lon": -97.56
            },
            {
                "lat": 17.31,
                "lon": -97.22
            },
            {
                "lat": 17.33,
                "lon": -96.95
            },
            {
                "lat": 17.31,
                "lon": -96.35
            },
            {
                "lat": 17.29,
                "lon": -95.75
            },
            {
                "lat": 17.29,
                "lon": -95.15
            },
            {
                "lat": 17.34,
                "lon": -94.53
            },
            {
                "lat": 17.41,
                "lon": -94.17
            },
            {
                "lat": 17.45,
                "lon": -93.91
            },
            {
                "lat": 17.61,
                "lon": -93.26
            },
            {
                "lat": 17.73,
                "lon": -92.85
            },
            {
                "lat": 17.8,
                "lon": -92.61
            },
            {
                "lat": 17.96,
                "lon": -91.95
            },
            {
                "lat": 18.04,
                "lon": -91.57
            },
            {
                "lat": 18.1,
                "lon": -91.3
            },
            {
                "lat": 18.2,
                "lon": -90.65
            },
            {
                "lat": 18.13,
                "lon": -90.05
            },
            {
                "lat": 17.57,
                "lon": -89.61
            },
            {
                "lat": 17.52,
                "lon": -89.6
            },
            {
                "lat": 16.95,
                "lon": -89.5
            },
            {
                "lat": 16.56,
                "lon": -89.26
            }
            ]
        }]
    ]
}
