The Inspectair Dashboard is a Python-based application designed to visualize air quality data, including particulate matter (PM2.5, PM10) and nitrogen dioxide (NO2) levels. The dashboard displays data for cities, countries, and continents over days, months, and years, providing an accessible and easy-to-understand graphical representation.
Core features and functionality:
- Provide statistical and graphical representation of the data
- Visualization of polutants on world map per country
Extra features:
- Interactive app form
Presequisites:
- pip (Python package installer)
- Python
- Go to the button on the top right on github and download the zipped folder, unzip it and navigate to the folder on terminal.
- Navigate to the terminal and enter the command
pip install -r install_requirements.txt
- Execute main.py located in the scripts folder in terminal using the command
python main.py
- this will result in a url - open your web browser and go to http://127.0.0.1:8002 to see the Dashboard. - Alternatively setup a conda environment with the command
conda env create -f environment.yml
and then activate it using the commandconda activate air_quality
in your anaconda prompt. Afterwards run main.py as above.
- To get started, choose a pollutant and a region.
- Choose a time span ranging from 2013 to 2022, the type of weather station you are interested in and the type of data you want to see (pollutant concentration or air quality index).
- On the left an interactive plot showing the pollutant concentration across the years can be seen, the interactive legend can be seen on the right of the plot, clicking the name of the region makes it disappear and viceversa, doubling clicking it hides the rest.
- On the right two rankings can be seen, the top ranking shows the most polluted areas and the bottom ranking shows the least polluted areas from the chosen weather stations.
- At the bottom of the page an interactive map can be seen, the heatmap layer which can be removed with the button on the top right corner of the map indicates the level of pollution in the air on the regions selected.
- There can be a bias created by the heterogeneity of the amount of weather stations present in different countries, this means that some regions will not display any pollution due to a lack of weather stations and therefore a lack of data availability to actually get a measurement of the air quality.
Programming languages:
Libraries used for generating visualizations:
- Tim Schlatter - Timsched
- Titaporn Janjumratsang - nam32
- Hector Arribas Arias - Hecthor1999
- Julian Niklaus - JuNi-2000
This project is licensed under the MIT License - see the LICENSE.md file for details