vishvish / fetch-service

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:Rust 100.0%