{ "cells": [ { "cell_type": "markdown", "id": "16f34a39-14ac-49ad-98da-abdb35ebfeae", "metadata": {}, "source": [ "## Project Eclipse data on the Planetary Computer\n", "\n", "The [Project Eclipse Network](https://planetarycomputer.microsoft.com/dataset/eclipse) is a low-cost air quality sensing network for cities and a research project led by the Urban Innovation Group at Microsoft Research.\n", "\n", "### Using the STAC API\n", "\n", "Project Eclipse data are distributed as a set of parquet files -- one per week. We can use the STAC API to search for files for a specific week." ] }, { "cell_type": "code", "execution_count": 1, "id": "c38a9046-d64e-48ff-b394-0d7f95f1cd73", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Found 1 item\n" ] }, { "data": { "text/html": [ "\n", "\n", "\n", "
\n", " | City | \n", "DeviceId | \n", "LocationName | \n", "Latitude | \n", "Longitude | \n", "ReadingDateTimeUTC | \n", "PM25 | \n", "CalibratedPM25 | \n", "CalibratedO3 | \n", "CalibratedNO2 | \n", "CO | \n", "Temperature | \n", "Humidity | \n", "BatteryLevel | \n", "PercentBattery | \n", "CellSignal | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "Chicago | \n", "2002 | \n", "State & Garfield (SB) | \n", "41.794921 | \n", "-87.625857 | \n", "2022-02-27 00:04:04 | \n", "9.126071 | \n", "10.79 | \n", "17.44 | \n", "10.49 | \n", "0.105193 | \n", "-0.526352 | \n", "59.703064 | \n", "4.143906 | \n", "91.634804 | \n", "-83.0 | \n", "
1 | \n", "Chicago | \n", "2002 | \n", "State & Garfield (SB) | \n", "41.794921 | \n", "-87.625857 | \n", "2022-02-27 00:09:14 | \n", "10.927937 | \n", "11.83 | \n", "15.63 | \n", "8.46 | \n", "0.114015 | \n", "-0.649185 | \n", "60.223389 | \n", "4.142812 | \n", "91.634804 | \n", "-80.0 | \n", "
2 | \n", "Chicago | \n", "2002 | \n", "State & Garfield (SB) | \n", "41.794921 | \n", "-87.625857 | \n", "2022-02-27 00:14:24 | \n", "10.395282 | \n", "11.38 | \n", "18.29 | \n", "5.25 | \n", "0.096386 | \n", "-0.627823 | \n", "60.884094 | \n", "4.141094 | \n", "91.634804 | \n", "-82.0 | \n", "
3 | \n", "Chicago | \n", "2002 | \n", "State & Garfield (SB) | \n", "41.794921 | \n", "-87.625857 | \n", "2022-02-27 00:19:33 | \n", "9.431242 | \n", "10.85 | \n", "15.11 | \n", "8.53 | \n", "0.119355 | \n", "-0.809402 | \n", "61.984253 | \n", "4.142969 | \n", "91.385475 | \n", "-81.0 | \n", "
4 | \n", "Chicago | \n", "2002 | \n", "State & Garfield (SB) | \n", "41.794921 | \n", "-87.625857 | \n", "2022-02-27 00:24:44 | \n", "9.648221 | \n", "11.05 | \n", "13.05 | \n", "9.92 | \n", "0.125682 | \n", "-0.809402 | \n", "62.377930 | \n", "4.142344 | \n", "91.385475 | \n", "-82.0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
187062 | \n", "Chicago | \n", "2214 | \n", "EPA COM ED Maintenance Bldg F | \n", "41.751200 | \n", "-87.713490 | \n", "2022-03-05 22:33:08 | \n", "0.747107 | \n", "8.14 | \n", "14.76 | \n", "13.74 | \n", "0.285773 | \n", "19.898682 | \n", "53.863525 | \n", "4.184062 | \n", "89.785156 | \n", "-110.0 | \n", "
187063 | \n", "Chicago | \n", "2214 | \n", "EPA COM ED Maintenance Bldg F | \n", "41.751200 | \n", "-87.713490 | \n", "2022-03-05 22:53:22 | \n", "0.733524 | \n", "12.95 | \n", "14.37 | \n", "20.18 | \n", "1.288297 | \n", "20.149689 | \n", "54.324341 | \n", "4.187969 | \n", "89.785156 | \n", "-111.0 | \n", "
187064 | \n", "Chicago | \n", "2214 | \n", "EPA COM ED Maintenance Bldg F | \n", "41.751200 | \n", "-87.713490 | \n", "2022-03-05 23:13:37 | \n", "0.000000 | \n", "12.95 | \n", "15.69 | \n", "17.94 | \n", "2.921081 | \n", "20.024185 | \n", "53.430176 | \n", "4.188281 | \n", "89.785156 | \n", "-111.0 | \n", "
187065 | \n", "Chicago | \n", "2214 | \n", "EPA COM ED Maintenance Bldg F | \n", "41.751200 | \n", "-87.713490 | \n", "2022-03-05 23:33:57 | \n", "3.208157 | \n", "14.79 | \n", "14.00 | \n", "20.47 | \n", "0.784464 | \n", "20.149689 | \n", "53.668213 | \n", "4.183750 | \n", "89.785156 | \n", "-109.0 | \n", "
187066 | \n", "Chicago | \n", "2214 | \n", "EPA COM ED Maintenance Bldg F | \n", "41.751200 | \n", "-87.713490 | \n", "2022-03-05 23:54:09 | \n", "0.000000 | \n", "8.09 | \n", "13.44 | \n", "16.40 | \n", "0.331082 | \n", "20.299225 | \n", "53.356934 | \n", "4.184219 | \n", "89.683594 | \n", "-110.0 | \n", "
187067 rows × 16 columns
\n", "\n", " | City | \n", "DeviceId | \n", "LocationName | \n", "Latitude | \n", "Longitude | \n", "ReadingDateTimeUTC | \n", "PM25 | \n", "CalibratedPM25 | \n", "CalibratedO3 | \n", "CalibratedNO2 | \n", "CO | \n", "Temperature | \n", "Humidity | \n", "BatteryLevel | \n", "PercentBattery | \n", "CellSignal | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
npartitions=89 | \n", "\n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " |
\n", " | string | \n", "int32 | \n", "string | \n", "float64 | \n", "float64 | \n", "datetime64[ns] | \n", "float64 | \n", "float64 | \n", "float64 | \n", "float64 | \n", "float64 | \n", "float64 | \n", "float64 | \n", "float64 | \n", "float64 | \n", "float64 | \n", "
\n", " | ... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
\n", " | ... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
\n", " | ... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "