The Weather Distribution KPI shows the relative frequency of different weather conditions — sunny days, rain, fog, snow, thunderstorms, and more — as a percentage breakdown for a given year and season. It answers the question: "What is the typical weather mix at this site?"
Data comes from Open-Meteo historical ERA5 reanalysis, which provides daily WMO weather codes going back to 1940. Each code is classified into one of 12 broad categories (e.g., Clear, Rain, Snow, Thunderstorms/Tornadoes), and the platform calculates how many days of the year fall into each category.
This is a visualization-only metric — there is no A--E quality grade. The output is purely descriptive: it tells you the weather character of a site, which provides context for interpreting other KPIs such as warming stripes, temperature trends, and aridity.
The indicator is available only for past years (historical data). Users with edit permissions can generate data on demand for any year in the last 30 years.
Each daily WMO weather code is classified into one of 12 named categories using the full WMO 4677 classification table:
| Category | WMO Codes | Display Name |
|---|---|---|
| Clear | 0--3 | Clear |
| Mist/Smoke/Dust | 4, 5, 6, 10 | Mist/Smoke/Dust |
| Fog | 11, 12, 28, 40--49 | Fog |
| Wind | 7--9, 18, 30--39 | Wind |
| Drizzle | 20, 50--55, 58, 59 | Drizzle |
| Rain | 21, 25, 60--65, 80--82 | Rain |
| Snow | 22, 26, 70--78, 85, 86 | Snow |
| Mixed Precipitation | 23, 68, 69, 83, 84 | Mixed Precipitation |
| Freezing Precipitation | 24, 56, 57, 66, 67 | Freezing Precipitation |
| Hail/Ice Pellets | 27, 79, 87--90 | Hail/Ice Pellets |
| Thunderstorms/Tornadoes | 13, 17, 19, 29, 91--99 | Thunderstorms/Tornadoes |
| Distant Weather | 14--16 | Distant Weather |
For each period (full year, spring, summer, autumn, winter), the percentage is calculated as:
Season boundaries are hemisphere-aware: southern hemisphere sites use inverted definitions (e.g., spring = September--November instead of March--May).
Data are sourced from Open-Meteo Historical Weather ERA5 at approximately 10 km daily resolution, covering 1940 to present.
Doughnut Chart. A thin-ring doughnut chart (cutout 80 %, 180 x 180 px) showing the proportional breakdown of weather categories for the selected year and period.
Purpose: To show at a glance what fraction of days in a given year or season were clear, rainy, foggy, snowy, or stormy at this site.
Description: The chart card shows the title "Weather Distribution" with a cloud icon and E1 topic badge. Above the doughnut, a "Site" label confirms the data is for the monitored site (there is no Control Area comparison for this KPI -- weather is point-based). Two filter controls appear below the header: a Year selector dropdown and a Period filter with five options (Full Year, Spring, Summer, Autumn, Winter). The doughnut ring is divided into colored segments, one per weather category present in the data. Categories with 0 % are hidden from both the chart and the legend. On hover, a tooltip shows the category name and its percentage (e.g., "Clear: 42.3 %"). A commentary button allows adding qualitative notes. A download button enables PNG and CSV export.
Weather Distribution
Clear (42%)Rain (19%)Mist/Smoke/Dust (12%)Snow (9%)Fog (7%)Wind (6%)Drizzle (5%)
How it's calculated: Each segment's arc length is proportional to the percentage of days in that category for the selected year and period. Data is sorted descending by percentage before rendering, so the largest segment always appears first.
Legend: Each category is shown with a colored circle and its label. The 13 hardcoded category colors are:
| Category | Color |
|---|---|
| Clear | ■ #FFD700 |
| Mist/Smoke/Dust | ■ #B0C4DE |
| Fog | ■ #708090 |
| Wind | ■ #87CEEB |
| Drizzle | ■ #ADD8E6 |
| Rain | ■ #4169E1 |
| Snow | ■ #FFFFFF |
| Mixed Precipitation | ■ #9370DB |
| Freezing Precipitation | ■ #00CED1 |
| Hail/Ice Pellets | ■ #E0FFFF |
| Thunderstorms/Tornadoes | ■ #FF4500 |
| Distant Weather | ■ #DDA0DD |
| Unknown (fallback) | ■ #808080 |
There is no A--E quality scale for this KPI.
Interpretation example:
If the doughnut for Full Year 2024 shows Clear at 42.3 % (a large gold arc), Rain at 18.7 %, and Mist/Smoke at 12.1 %, this means the site experiences predominantly fair weather, with roughly one day in five bringing rain -- a typical temperate continental climate signature.
| Source | Provider | Coverage | Resolution | Period |
|---|---|---|---|---|
| Open-Meteo Historical Weather ERA5 | Open-Meteo | Global | ~10 km, daily | 1940 -- present |
Daily WMO weather codes are retrieved from the Open-Meteo ERA5 Historical Weather API for the site's geographic coordinates. Each daily code is mapped to one of 12 categories using the full WMO 4677 classification table. For each period (full year or season), the number of days in each category is divided by the total number of days to produce a percentage distribution. Season boundaries are inverted for sites in the southern hemisphere: northern hemisphere spring = March--May becomes September--November in the south, and northern summer = June--August becomes December--February. Data is generated on demand; once generated, a year's data is cached and does not need to be re-fetched.