AQ-AI / openaq-engine

http://www.aqai.xyz
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Creating query parameters for "intra-city" run #53

Closed ChristinaLast closed 1 week ago

ChristinaLast commented 1 year ago
ChristinaLast commented 1 year ago

This branch is currently hard coded for Cairo, EG. You can change those directly to suit your usecase, or you can fix the code to produce --city or --country filters. I had the challenge of making then work together and error handling if one returns None within a specified time bound

ChristinaLast commented 11 months ago

I am trying to build validation set with

https://api.openaq.org/v2/measurements?date_from=2023-07-07T00:00:00Z&date_to=2023-10-07T00:00:00Z&parameter_id=2&country=US

but there is an issue with using the parameter or the parameter_id flag to get pm2.5 data only. response is:

{
    "detail": "Connection timed out"
}
ChristinaLast commented 11 months ago

There is some issues with doing only 3 month time window, I am pushing 12 months to branch as this is working.

ChristinaLast commented 11 months ago

End to end pipeline is working on this branch, error handling performed in the following ways: