Public Lab Research note


Download & Analyze Purple Air data

by jiteovien | | 809 views | 0 comments |

Read more: publiclab.org/n/17007


To do this activity you do not need to actually have a PurpleAir.

**
**

On the PurpleAir Map, you can search by ID name or location to find a PurpleAir that is actively logging data. If you have your own PurpleAir setup, you can search for that one. If there is another location you are interested in, you can search for that city and see if there are any PurpleAirs setup in that area.

For example, I am from Keller, Texas, so i decided to search for that location. I found one live PurpleAir in that area. Take note of the ID name for the data you are interested in. The ID name of the sensor is '908 Bellstone Dr' as shown on the graph.

image description

Once you have selected a PurpleAir you want to work with, go to purpleair.com/sensorlist where you can download data from any PurpleAir sensor whether or not you own one. Unfortunately, there isn't a search by ID function but the sensors are in alphanumeric order so you can find your ID that way. Then select a range of dates that you are interested in. I selected a range of dates of one week because on the map, it looked like the AQI changed a lot in that period of time. Press download. Select both the channel A (not labeled A) and channel B.

image description

For each sensor that you download, the excel files should be named something along the lines of:

SensorIDname Primary

SensorIDname Secondary

SensorIDname B Primary

SensorIDname B Secondary

The difference between Primary and Secondary data is described on the Purple Air wiki page. Generally, you'll be interested in just the Primary data but you may want the Secondary data as well. Channel A and Channel B are intended to be redundant data. Briefly browse 'SensorIDname Primary' next to 'SensorIDname B Primary'. The data should be mostly similar but might have different time steps. See Below:

image description

At this step, you may either choose to work with just one of the channel's or you may use both if you're interested in comparing them - up to you!

Now, decide how you want to manipulate and present your data. You can use excel to insert graphs or you can use a programming language such as Python, Java or Arduino to analyze it.

Some ideas for graphs:

  • You could do a simple concentration over time line graph
  • You could compare several closeby locations
  • You could compare PurpleAir data to Federal AQ data. Details about accessing Federal data are described on the Purple Air wiki page.
    • How closely does your PurpleAir match Federal Data?
    • How often does your PurpleAir read higher or lower than Federal data?
  • Using the concentration -> AQI conversion chart, you could parse your excel file to see how often the air quality index is above a certain reading. Read more about AQI here.
    • For example, how often is your PM 2.5 AQI in the "moderately unhealthy" category?
    • How long does the AQI stay in a "hazardous" category

Try it out and see what types of trends you can find!


I did this Help out by offering feedback!


People who did this (1)

Title Author Updated Likes
PM 2.5 Air Quality Index for Keller, Texas @jiteovien 5 months ago

0 Comments

Login to comment.

Public Lab is open for anyone and will always be free. By signing up you'll join a diverse group of community researchers and tap into a lot of grassroots expertise.

Sign up