An open API service indexing awesome lists of open source software.

https://github.com/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.
https://github.com/vishvish/fetch-service

air-quality climate-change climate-data environmental-monitoring eu europe european-union pollution-levels rust

Last synced: about 2 months ago
JSON representation

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.

Awesome Lists containing this project

README

          

# 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///

/**/*.csv -e iso-8859-1 > output.csv
Import concatenated file into mongodb:

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