Kathmandu Air
One year of hourly data

Kathmandu's air broke the WHO guideline on most days of the year.

I took a full year of hourly air quality data for the Kathmandu Valley and analysed it with Python and pandas to find out when the air is worst, why, and how the capital compares with the rest of Nepal.

--
average PM2.5, about 3× the WHO daily limit
--
of hours rated Unhealthy or worse (US AQI over 150)
--
worst month vs the cleanest
--
highest hourly US AQI of the year
Finding 1 · Seasons

Winter air is the worst, and the monsoon washes it clean

The valley is a bowl. In the dry, cold months, still air and temperature inversions trap smoke from vehicles, brick kilns and burning, while rain from June to September scrubs it out.

Average PM2.5 by month, µg/m³WHO 24-hour guideline
Finding 2 · How bad, how often

In winter, most hours are Unhealthy

Share of hours in each US AQI band
Finding 3 · Time of day

The air is cleanest at midday and worst at night

At midday the sun warms the ground and mixes the air upward. After sunset a cold layer settles over the valley floor and holds the evening's traffic and cooking smoke near the ground.

Average PM2.5 by hour, Nepal timeDry season (Nov–Apr)Monsoon (Jun–Sep)
Finding 4 · Worst days

The five worst days came from fire season

Highest daily average PM2.5
    Finding 5 · Other cities

    Kathmandu isn't the most polluted city in Nepal

    Average PM2.5 over the same year

      Method

      How I did it

      1. Collected hourly PM2.5, PM10, NO₂ and US AQI for four cities from the Open-Meteo Air Quality API, one full year, in Nepal time.
      2. Loaded each city into a pandas DataFrame indexed by time, and resampled the hours into daily means.
      3. Grouped by month, hour of day and weekday with groupby, and split the year into dry season and monsoon to compare daily cycles.
      4. Classified every hour into the US EPA AQI bands and measured each band's share per month.
      5. Compared daily means with the WHO 2021 24-hour guideline of 15 µg/m³ and ranked the worst days.
      6. Exported the results to data.json, which this page draws its charts from. The charts are hand-built SVG.
      daily = ktm.resample("D").mean(numeric_only=True)
      days_over_who = (daily["pm2_5"] > 15).sum()
      monthly = ktm.groupby(ktm.index.month)["pm2_5"].mean()
      dry = ktm[ktm.index.month.isin([11, 12, 1, 2, 3, 4])]
      by_hour = dry.groupby(dry.index.hour)["pm2_5"].mean()

      About the data: these values come from the CAMS global atmospheric model, which estimates air quality over a grid about 40 km wide. They show the pattern across the valley well, but they are not readings from a ground station, and local streets can be much worse.