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.
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.
In winter, most hours are Unhealthy
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.
The five worst days came from fire season
Kathmandu isn't the most polluted city in Nepal
How I did it
- 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.
- Loaded each city into a pandas DataFrame indexed by time, and resampled the hours into daily means.
- Grouped by month, hour of day and weekday with
groupby, and split the year into dry season and monsoon to compare daily cycles. - Classified every hour into the US EPA AQI bands and measured each band's share per month.
- Compared daily means with the WHO 2021 24-hour guideline of 15 µg/m³ and ranked the worst days.
- 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.