Skip to content

Rust app to download all the air quality data files from the European Union website. You can easily import this data into a database and map changes in the different pollutants over time across thousands of locations in Europe.

Notifications You must be signed in to change notification settings

vishvish/fetch-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Air Quality Data Pipeline

Imports European Air Quality data from the service here: https://discomap.eea.europa.eu/map/fme/AirQualityUTDExport.htm

Files are recreated every 30 minutes and contain 48 hours of data.

Download the daily data files from the European repository

cargo run

Importing the data after download

Install csvkit in order to get csvstack: brew install csvkit

Use csvstack to concatenate the downloaded files:

csvstack data/<YYYY>/<M>/<DD>/**/*.csv -e iso-8859-1 > output.csv       

Import concatenated file into mongodb:

mongoimport --type csv -d test -c airquality --headerline output.csv               

About

Rust app to download all the air quality data files from the European Union website. You can easily import this data into a database and map changes in the different pollutants over time across thousands of locations in Europe.

Topics

Resources

Stars

Watchers

Forks

Languages