Archive for the ‘api’ Category

counting grade 1 air quality days – a new metric for evaluating Beijing’s air quality?

Monday, August 30th, 2010

Earlier this month, the Economist featured a nice piece about the ineffectiveness of current efforts to improve China’s environmental quality, including some discussion of recent decreases in air quality. The authors cite the official Ministry of Environmental Protection announcement for overall air quality averages in cities across the country, but run their own numbers for Beijing specifically, arriving at this conclusion:

Residents of Beijing, who hoped the clear skies they enjoyed during the 2008 Olympic Games would persist, have also resumed their grumbling. Smog is back with a vengeance…

Official data show a diminishing share of grade 1 (“excellent”) air-quality days since the games.

The claim is supported with this chart:

201032asc031

This chart caught my attention because it’s the first time I’ve seen “percentage of Grade 1 air quality days” used as an indicator of air quality. Usually, data for Grade 1 and Grade 2 are presented together. The reason is because China’s ambient air quality standard calls for urban air quality to meet only the Grade 2 level. (”Blue Sky Days” are days which have Grade 1 (excellent) or Grade 2 (good) air quality by the Chinese standards.) Charting percentage of days meeting Grade 1 or Grade 2 yields a very different impression:

number grade 1 and 2 through july 2010

Using this metric of Grade 1 or 2, there is no apparent decrease in air quality from 2008 to 2009, the drop from 2009 to 2010 seems minimal, and the overall situation appears much less dire (the percentage of passing days floats above 70% as opposed to 10%).

Two questions come to mind here. First, is it misleading for the Economist to use this unconventional metric? Maybe. The article neither describes what Grade 1 means nor justifies why “percentage of Grade 1 days” is an appropriate / better indicator of air quality, although Grade 2 is discredited using an comparison to the BeijingAir Twitter feed:

The American embassy in Beijing, to the annoyance of local officials, issues frequent air-quality readings for its part of the city. These, based on the presence of fine particulates, mostly ranged from “moderate” to “unhealthy” in the 24 hours after midday on July 31st. But the government called that period grade 2, or “good”. Incredibly, to anyone familiar with China’s perennially grey urban landscapes, fully 91% of days in 113 big cities in the first half of this year were described as “blue sky”.

Second question: is it correct to talk about percentage of Grade 1 days? That’s tough to answer. The technical answer is no, it’s not, because any use of “number of days” or “percentage of days” meeting a single standard is statistically meaningless. (For a short and nerdy explanation of this, see this post). That having been said, though, I do believe that scrutinizing Beijing’s air quality by looking at Grade 1 – instead of Grades 1 and 2 – days provides a much more reasonable snapshot of the actual air quality in the city. For one thing, China’s air quality limits for Grade 1 are much closer to internationally-recognized standards. For another, one would assume that there is lower risk for data manipulation around the Grade 1/2 border than around the Grade 2/3 border.

I raised the idea of looking closer at Grade 1 earlier this year. Maybe it’s time for a more in depth analysis, but I’ll save that for another post.

official data shows air quality worsening in china

Wednesday, August 4th, 2010

Last week, multiple media outlets (including Xinhua, the New York Times, and the Wall Street Journal) reported on MEP’s admission of worsening air quality during the first half of 2010. Here, I will take a closer look at how this was reported, what exactly this means, and what is happening in Beijing specifically.

First of all, the original announcement from MEP is here (Chinese only). Both Xinhua* and the Wall Street Journal made major mistakes in their reporting of the announcement. Both reported that the average atmospheric particulate level rose to 0.091 mg/m^3 from 0.002 mg/m^3 last year. This is incorrect. Doesn’t anyone check original sources any more? The MEP report says “可吸入颗粒物浓度同比上升0.002毫克/立方米。” This means that the PM level is 0.002 mg/m^3 higher than last year’s, not that last year’s value was 0.002 mg/m^3. Someone pointed this out in the comments section of the Wall Street Journal article (which claims the increase is “humongous”), but it still hasn’t been corrected.

The Wall Street Journal also made the mistake of claiming that “the first half of 2010 had the worst air quality since 2005.” This is also not true. MEP’s announcement, which the WSJ story links to, says, “自2005年以来,环保重点城市空气质量优良天数比例首次出现下降,可吸入颗粒物浓度首次上升。” The correct interpretation here is that the first half of 2010 is the first period since 2005 that there has been a decrease in air quality from one year to the next. In other words, the trend of improving air quality has changed. At least Xinhua got this one right:

Economic recovery has partly caused the country’s air quality to fall in the first half of the year, the first such fall since 2005, figures from environmental authorities showed on Monday…”It was the first time for these cities to record a fall in the number of days with good air quality and a rise in the concentration of inhalable particles since 2005,” ministry spokesman Tao Detian said.

Unfortunately, the WSJ’s mistakes are already bouncing around the blogosphere.

Of course, despite the mistakes I’ve pointed out, the story is still quite significant. After years of official statistics showing improving air quality, MEP’s air quality data now shows a very slight increase in ambient particulate matter concentration. The data MEP gives are average pollution levels for 113 major cities, which is a little strange, since pollution levels vary widely across China. Although the averages are an interesting snapshot (and it is significant that MEP is reporting this bad news), these averages are not very meaningful; they say nothing about regional trends / changes or population exposure. This is an important area for more detailed research.

MEP’s announcement also gives averages in percentages of days meeting Class I and II air quality standards (so-called “Blue Sky Days“), but this metric is meaningless, as described previously on this blog.

What is more interesting is looking at data on individual cities. After all, most people spend most of their time in a single city. Plus, local and regional pollution control programs may vary from place to place. For Beijing specifically, I ran my own analysis of Beijing’s API data for the first half of the year using data I downloaded from MEP’s datacenter. After converting API to PM10 concentration using the methodology described here, I calculated the average PM10 concentration for the first half of 2010 in Beijing to be 124 ug/m^3. I also produced the following figure:

Beijing 2000-2010a

The figure shows that Beijing’s air quality, using average PM10 concentration as an indicator, has not shown improvement over the period 2008-2010. This trend is a continuation of the stagnant pollution levels I described earlier this year. Although MEP’s 113-city average (91 ug/m^3) is below China’s ambient air quality standard (100 ug/m^3), Beijing’s air quality remains well above China’s own standard, which is well, well above the WHO’s.

For those of you keeping track of Blue Sky Days, the Beijing EPB announced that there were 140 Blue Sky Days in the first half of the year, which, despite the increase in air pollution, somehow means Beijing is still on track to meet its Blue Sky Day goal. But this is a subject for another post.

Anyone who read this blog over the period 2008 to 2009 will know that I often repeated a two-part mantra: Beijing’s air quality is getting better, but we have a long way to go. I always felt that acknowledging the first part was critical to making progress working with China, and I was happy to see the New York Times article last October making this exact claim (headline: “Beijing’s Air is Cleaner, but Far from Clean;” my analysis here) It is frustrating and sad that this is no longer the case, even by China’s official data.

*To be fair to Xinhua, their mistake was only one word. Their report states, “The amount of inhalable particles, a major air pollution index, was also 0.091 milligrams per cubic meter in these cities, rising from 0.002 milligrams per cubic meter over the same period last year, the ministry reported.” The problem in this sentence is the one word “from,” which significantly changes the meaning (from incorrect to correct) if removed.

beijing’s 2010 blue sky day target announced as 266

Wednesday, January 13th, 2010

A China Daily report today mentions Beijing’s 2010 Blue Sky Day target as 266. This is the first time I’ve seen the target referenced; I’m not sure how/when they set or publicize them. Perhaps they are in Beijing’s Five Year Plan. Does anyone know?

This China Daily report also mentions Beijing’s 2009 Blue Sky Day total, 285, representing the first time I’ve seen it mentioned in English-language domestic media (although Xinhua covered the accomplishment in Chinese on 1/1.)

Recent targets and totals are shown below. Note that the 2010 target is below the number of Blue Sky Days achieved in both 2008 and 2009.

blue sky day targets and totals

why number of blue sky days is a terrible metric

Sunday, January 3rd, 2010

In my post summarizing Beijing’s 2009 air quality, I noted that although the number of Blue Sky Days increased from 2008 to 2009, there was a very minimal reduction in annual average particulate matter concentration (the reduction has now been confirmed by the Beijing EPB to be just 0.8%). I then called the “number of Blue Sky Days” metric scientifically meaningless.

Here is a simple example showing clearly how and why the use of number of Blue Sky Days can distort the reality of air quality:

Suppose you take two sets of two days, and you wish to evaluate which period had better air quality. Here are the data you have:

Day 1 and Day 2: API* is 100 on both days.
Day 3: API is 101.
Day 4: API is 1.

Over the period Day 1-2, we have an average API of 100, and a total of 2 Blue Sky Days.
Over the period Day 3-4, we have an average API of 51, and a total of 1 Blue Sky Day.

If you are judging air quality by “number of Blue Sky Days,” you would conclude that the air quality was better on Days 1-2. On the other hand, if you are judging air quality by average concentration of pollutants people are exposed to, you would judge that Days 3-4 were much better. Actually, because the normalization from pollutant concentration to API is non-linear, in this example, the average pollution level of Days 1-2 could be up to three times higher than the pollution on Days 3-4, and yet this period is judged as being better, because it has more Blue Sky Days.

This is what I mean by a scientifically meaningless metric.

*Reminder: API (air pollution index) is a 0-500 normalized measure of the pollution people are exposed to; a Blue Sky Days is a day with API of 100 or below.

summary of beijing’s 2009 air quality

Thursday, December 31st, 2009

Happy New Year (a few hours early)!!! For my last post of the year, here is some overall analysis of Beijing’s air quality over the past 12 months.

First, the numbers. As usual, I’m working from air quality data downloaded from the Ministry of Environmental Protection’s datacenter. (Direct link to Beijing’s data is here.) There is a bug in the system that prevents the query function from working properly, but you can still scroll through the data and download it manually through copy and paste.

The datacenter reports 363 data points for 2009; 2/18 and 11/14 are mysteriously missing. Assuming those two days were Blue Sky Days yields a Blue Sky Day count of 285 and a calculated average PM10 concentration of 120 ug/m3.

For anyone who is new to this blog or who needs a refresher, a Blue Sky Day is a day with an Air Pollution Index (API) of 100 or below, which means that the air quality meets China’s National Grade II air quality standard – theoretically “excellent” or “good” air quality. China tallies annual number of Blue Sky Days as a consumer-friendly and easily-understood measure of air quality progress, although the metric is prone to gaming and scientifically meaningless.

PM10 means particulate matter of size 10 microns or smaller, also called “inhalable particles.” In 2009, PM10 was the reported dominant pollutant on 97% of days with an API above 50. (No dominant pollutant is reported on days with an API 50 or below.) I back-calculated PM10 from API using formulas and assumptions described here.

Trends of Blue Sky Days and PM10 concentration since 2000 are shown here:

beijing 2000-2009 air quality trends

The Good News: The good news isn’t really that good, but in the interest of balance here are some positive perspectives. First, Beijing’s count of 285 Blue Sky Days in 2009 is well above that of 2008 (274), and also well above the goal of 259. This will keep the trending up in official reporting and for boosting public morale; I imagine this fact will be spun as success / progress in the Chinese media in the days to come. I suppose another bit of good news is that Beijing has achieved what appears to be an improvement over 2008 without the boost of two months of extreme traffic restrictions and factory closures implemented last year during the Olympic period.

The Bad News: My calculated average PM10 concentration in Beijing for 2009 is 120.2 ug/m3, which less than a 1% reduction from 2008’s average. In other words, from the perspective of average particulate matter concentration, there was no improvement in air quality in Beijing from 2008 to 2009. This shows the danger of using “number of Blue Sky Days” as a metric for air quality evaluation – just because the number of Blue Sky Days increases doesn’t mean that air quality has improved.

Interestingly, as a thought experiment, let’s suppose that China’s air quality goal was that all cities should meet the Grade I air quality standard, meaning that a Blue Sky Day would have an API of 50 or below as opposed to an API of 100 or below. If we count these days (shown in the graph above in light blue), we actually see that 2009 was worse than 2008; 2008 had 62 Grade I days, while 2009 had only 47.

Most importantly, regardless of how you spin the data, Beijing’s 2009 level of inhalable particulate matter was still 20% higher than China’s own air quality standard and six times higher than the WHO’s recommended annual PM10 standard. What this means, of course, is that our work continues to be cut out for us moving into 2010 and beyond.

Related post:  Summary of Beijing’s 2008 air quality

mep website redesign and datacenter problems

Monday, November 9th, 2009

The Ministry of Environmental Protection unveiled a new Chinese website about a week or so ago.  The English version appears unchanged for now. This news would probably not be blog-worthy except that the datacenter now seems a little buggy, causing two problems:

1) The Greenpeace Beijing API widget that I have on the top right of this blog isn’t fetching daily data anymore. (I’ve been in touch with the developers and I know they are working on it.)

2) The datacenter’s query function for past air quality data doesn’t quite work right; data queries return past data different from the date range entered. I hope and presume this will be fixed soon.

After the redesign, the presentation of API on the MEP homepage is now done in the datacenter analysis format, as opposed to the old list format (still used on the English site).

new mep page

air in beijing hazardous again

Friday, November 6th, 2009

11 6 09 twitter

The pollution in Beijing right now is bad. Really bad. So bad that you can feel the heaviness, the denseness of the air as you breathe it in. It is stifling.

So how bad it is? Well, the closest thing we’ve got to real-time data, the US Embassy’s BeijingAir Twitter feed, confirms our worst fears; it has been reporting hazardous air for over 24 hours now, with over half of the hourly data points maxed out at an AQI of 500. MEP’s air quality data released this afternoon, on the other hand, shows an API of just 186, “lightly polluted” (”轻度污染”).

I wrote a lot about this discrepancy back in June when Beijing experienced a similar pollution spike. (See these posts: 6/18: air in Beijing is hazardous; 6/19: more info on Beijing’s 6/18 air quality; 6/22: US Embassy outed as source of BeijingAir Twitter feed.) In June, I posited that the hazardous pollution was not reflected in the MEP data because the MEP data is a 24-hour average, while the pollution events then only lasted for a few hours each. In this case, though, BeijingAir has been continuously reporting hazardous air since around 4pm yesterday, so it’s hard to imagine how the MEP data is still so “low.” (Low is in quotation marks because an API of 186 still represents very polluted air.)

I’m afraid I don’t have time to post more right now; I’ll try to get some graphs up this weekend. In the meantime, avoid strenuous exercise and stay inside if you can. With the Embassy-reported AQI maxed out at 500, the air is, in theory, worse than hazardous:

11 6 09 aqi

translations from beijing’s 2008 state of the environment report

Thursday, October 29th, 2009

state of env report 1

Beijing’s annual State of the Environment Report was released in June of this year. Even though it came out a few months ago, I haven’t written about it yet, so I want to post the link here along with some comments and translations of key figures.

2008年北京市环境状况公报 (Chinese only)
Past reports available here: http://www.bjepb.gov.cn/bjhb/tabid/375/Default.aspx

About half of the 31-page report is devoted to air quality, with primary focus on the measures taken to control air quality during the Olympics and Paralympics. But first I’d like to show the annual data, which is presented in the standard forms of trends of annual average concentrations of pollutants (decreasing) and numbers of blue sky days (increasing):

state of env report 2

state of env report 3

Overall, the short conclusion on annual air quality is given as follows:

state of env report 9

Translation:

Annual Air Quality
In 2008, there were 274 days at or above Grade II air quality, 74.9% of the year. This was 89 more days and 24% higher than in 2001. Atmospheric concentrations of SO2, CO, NO2, and PM10 were 0.036, 1.4, 0.049, and0.122 mg/m3, respectively, representing reductions of 43.8%, 46.2%, 30.9%, and 26.1%, respectively, from 2001. Concentrations of SO2, CO, and NO2 met the national standard. PM10 concentration exceeded the national standard by 22%.

According to current government monitoring and standards, PM10 is the biggest pollutant of concern presently in Beijing. In January of this year, I estimated 2008 annual PM10 at 0.123 mg/m3 (close enough to the actual reported figured of 0.122), noting that this is over six times higher than the WHO’s recommended ideal annual PM10 standard of 0.020 mg/m3.

As for the Olympics and Paralympics, Beijing’s State of the Environment Report presents individual graphs for Air Pollution Index for both periods, as if to prove that Beijing met its commitment to keep the API below 101 throughout the Games:

state of env report 6

state of env report 7

Related posts: final day of temporary air quality measures, end of the games.

Pollution concentration data are also shown, along with comparative reductions to 2007:

state of env report 4

state of env report 5

These numbers all support widespread claims that pollution during the Games was reduced by around 50% from 2007. Conclusion:

state of env report 8

Translation:

Olympic Period Air Quality
Beijing’s air quality met the standard every day during the Olympics and Paralympics. The atmospheric concentrations of main pollutants were reduced by about 50% from last year. Daily concentrations of SO2, CO, and NO2 met world standards for developed cities, and the daily concentration of PM10 met the WHO Stage 3 guidelines, meeting Beijing’s promises by far.

I’ll be investigating that last sentence in a separate post.

Top image source: Page 1 of the report. All figures and tables copied from Beijing’s 2008 State of the Environment Report and then translated.

new york times on beijing’s air quality

Thursday, October 29th, 2009

About two weeks ago, the New York Times published an excellent article on Beijing’s air quality. I feel honored that the online version of the article links to this blog, but that’s not the only reason I think it’s a great piece. The title of the article, “Beijing’s Air Is Cleaner, but Far From Clean,” is itself a succinct and accurate portrayal of the current state of the air here, and is a strong prelude to the article’s comprehensive, balanced view of both the successes and challenges faced by Beijing.

The article’s author, Michael Wines, portrays Beijing’s air quality situation from four different angles / contexts, all of which I think are important and valid for anyone wishing to understand the complexity of the air pollution issue. Here, I will describe and expand upon these four contexts.

1) Both the Beijing government and local researchers assert that air quality has steadily improved over the past decade. In other words, we’re making progress:

Through September, the government counted 221 days in which the 0-to-500 pollution index — the lower the number, the better — was below 101. It was the greatest number of “blue-sky days,” as the city calls them, since daily measurements were first published in 1998.

At the same time, the city has recorded only 2 days with dangerously high air pollution. That is the lowest number in a decade, and fully 17 days fewer than were logged in the same period in 2000.

“For those of us who have been monitoring air pollutants for about 10 years, we see a clear reduction in pollution,” Zhu Tong, a professor and air pollution scientist at Peking University’s College of Environmental Sciences and Engineering, said in an interview.

2) Valid concerns exist over the accuracy and validity of the government data. In other words, be careful not to base all of your analysis on official statistics:

Outside experts caution that the city’s measurements are not just imprecise — they do not measure the tiniest particulates that are most damaging to lungs, for instance — but potentially misleading.

3) Although it appears that we are making progress, even the government’s official numbers show current air quality that is objectively still quite poor. In other words, we have a lot of work left to do:

And Beijing’s air remains far from pristine by any measure. The average concentration of particulates in city air during 2008, for example, was six times the ideal standard recommended by the World Health Organization. Indeed, Beijing has yet to meet the W.H.O.’s interim air standards for developing countries — or even the less stringent standards posted by China’s national government.

(Data supporting both of these claims may be found in these two posts from this blog: comparing international standards and summary of Beijing’s 2008 air quality.)

4) The improvements so far have been the result of impressive, massive, widespread programs and policies targeting air quality improvement; indeed such programs have been required for the government to have any chance in winning the “race” against the booming growth. In other words, although the government should be doing more, we recognize and applaud what they are already doing:

In the past decade, in fact, authorities have moved against air pollution problems with a tenacity that some environmentalists in developed nations, pitted against industry lobbyists and balky political machinery, can only envy.

The piece concludes by describing many such programs, including strict emission standards, fuel quality standards, introduction of alternative fuel buses, elimination of coal-fired burners, and more.

Rarely have I seen an article which succeeds at presenting all four perspectives. My general sense is that the Western media tends to focus largely on (2) and (3) (the data is suspect, air quality is still poor), whereas the Chinese media highlights (1) and (4) (we’re making progress, we have many successful programs in place). And yet, honest and comprehensive dialogue on solutions to Beijing’s air quality problem requires considering all four angles.

Lastly, my only objection to the article is the comparison of China’s scrappage program for high-emitting vehicles with the US’ Cash for Clunkers program. This is a little misleading, because the US program targets fuel economy while China’s program targets air pollutant emissions, but this is a subject for another post.

Disclosure: The author, Michael Wines, interviewed me for background information before writing the article.

api data anomaly during olympics

Friday, September 18th, 2009

While preparing some analysis comparing this summer with last, I discovered something strange. The Ministry of Environmental Protection’s datacenter now lists two Air Pollution Index values for 8/16/08:

8 16 08
This is very unusual for several reasons:

1) There should only be one API value for each day. Although I have occasionally noticed data points missing, I’ve never seen two different data points for the same day.

2) This double data point did not appear until months after the Olympics were over. I know this both because I was tracking the Olympic air quality data on a day-by-day basis last August, and also because I downloaded datasets earlier this year that did not include the double point.

3) There is a rather large discrepancy between the existing, reported 8/16/08 API, 23, and the new, second data point for the same day, 84. Given that 8/16/08 was right in the middle of the Olympics, if the second data point is indeed correct, it has implications for the overall air quality assessment of the Games.

My guess and hope is that it’s just some strange glitch in the data reporting system. I’ll continue to monitor it to see if anything changes.