Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JamesOConnor/openaq-s5
Map openaq data onto Sentinel5P data using AWS lambda
https://github.com/JamesOConnor/openaq-s5
Last synced: 3 months ago
JSON representation
Map openaq data onto Sentinel5P data using AWS lambda
- Host: GitHub
- URL: https://github.com/JamesOConnor/openaq-s5
- Owner: JamesOConnor
- Created: 2020-06-25T15:31:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T10:58:49.000Z (almost 2 years ago)
- Last Synced: 2024-05-16T01:35:45.229Z (6 months ago)
- Language: Jupyter Notebook
- Size: 277 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
- awesome-earthobservation-code - openaq-s5 - Map openaq data onto Sentinel5P data using AWS lambda (`Python` processing of optical imagery (non deep learning) / Processing imagery - post processing)
README
A PoC for taking data from [openaq](www.openaq.org)'s API and mapping it onto Sentinel 5P L2 full column daily averaged values.
The available atmospheric gases which can be retrieved are CO, NO2, SO2 and O3.
The lambda proxies openaq's API, then subsequently calls the [meeo STAC catalog](https://github.com/Sentinel-5P/data-on-s3/blob/master/DocsForAws/Sentinel5P_Description.md) to retrieve values for a parameter for the given coordinates, for each date where a measurement exists on the openaq API.
This repository consists of two lambda functions - openaq_s5.py and retrieve_s5.py
openaq_s5.py can be initialized as normal per [AWS' guide](https://docs.aws.amazon.com/lambda/latest/dg/python-package.html)
retrieve_s5.py requires geographic libraries - I used [geolambda](https://github.com/developmentseed/geolambda) to initialize it.
The openaq_s5 lambda will call retrieve_s5 once for every date in the openaq data.
I've included a script which will produce a scatter chart as below - it requires matplotlib
![](example.png)
To-do:
1. We can retrieve the timestamps for the Sentinel-5 measurements with a bit of wrangling, would be better than a daily average
2. Filtering openaq data