Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EEA] Ingest data from European Environment Agency's Air Quality Index #12

Open
amotl opened this issue Oct 1, 2019 · 3 comments
Open

Comments

@amotl
Copy link
Member

amotl commented Oct 1, 2019

@wetterfrosch recently requested adding support for the European Environment Agency's European Air Quality Index [1].

[1] https://www.eea.europa.eu/themes/air/air-quality-index

/cc @gutzbenj

@amotl
Copy link
Member Author

amotl commented Oct 1, 2019

Some progress has been made with 4684fc4 and 9e73156.

Now, when invoking a command like:

luftdatenpumpe stations --network=eea --country=CZ --reverse-geocode --progress

It will ingest the list of monitoring stations from EEA and display the gathered data in JSON format. Two details work well already:

  1. Filtering by country.
  2. Enriching location metadata by reverse geocoding through Nominatim.

[1] https://ptrace.hiveeyes.org/2019-10-01_eea-cz-stations.json

@amotl amotl changed the title Add EEA data source (European Environment Agency's European Air Quality Index) Ingest data from European Environment Agency's (EEA) Air Quality Index Oct 1, 2019
@amotl amotl changed the title Ingest data from European Environment Agency's (EEA) Air Quality Index [EEA] Ingest data from European Environment Agency's Air Quality Index Dec 9, 2019
@amotl
Copy link
Member Author

amotl commented Aug 3, 2022

Problem

It looks like the URL https://ereporting.blob.core.windows.net/downloadservice/metadata.csv has been decommissioned.

$ luftdatenpumpe stations --network=eea --country=CZ --reverse-geocode --progress
2022-08-03 17:22:25,342 [luftdatenpumpe.source               ] INFO   : Applying filter: Munch({'country': ['CZ']})
2022-08-03 17:22:25,344 [luftdatenpumpe.commands             ] INFO   : Acquiring list of stations from network "eea" with source "api"
2022-08-03 17:22:25,344 [luftdatenpumpe.source.eea           ] INFO   : Requesting EEA at https://ereporting.blob.core.windows.net/downloadservice/metadata.csv
2022-08-03 17:22:25,515 [luftdatenpumpe.source.eea           ] ERROR  : Request failed: unknown
Traceback (most recent call last):
[...]
  File "/Users/amo/dev/earthobservations/sources/luftdatenpumpe/.venv/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: The specified blob does not exist. for url: https://ereporting.blob.core.windows.net/downloadservice/metadata.csv

Thoughts

The resources should be updated, and EEA ingest should be completed. From a quick research at [1-4], replacement resources might be [5] and [6].

[1] https://aqportal.discomap.eea.europa.eu/index.php/users-corner/
[2] https://discomap.eea.europa.eu/map/fme/
[3] https://discomap.eea.europa.eu/map/fme/AirQualityExport.htm
[4] https://discomap.eea.europa.eu/map/fme/doc/UTDAirQualityDownloadGuide.pdf
[5] https://discomap.eea.europa.eu/map/fme/metadata/PanEuropean_metadata.csv
[6] https://discomap.eea.europa.eu/map/fme/latest/CZ_PM10.csv

@amotl
Copy link
Member Author

amotl commented Dec 5, 2022

It looks like the URL ... has been decommissioned.

Retrieving the station list from EEA has been fixed with #40, and is available per luftdatenpumpe 0.21.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant