ECMWFCode4Earth / vAirify

code repository for 2024 Code for Earth project #16
http://136.156.139.13
MIT License
4 stars 1 forks source link

Bug : The average AQI values on the summary page are inconsistent with those on the city page #286

Open rstrange-scottlogic opened 3 months ago

rstrange-scottlogic commented 3 months ago

We have found examples where the AQI shown on the summary page does not match the AQI shown on the city page.

For example Budapest at 31/07/2024 18:00 is showing an Ozone value of 4 and forecast of 2 on the summary page:

Image

But the city page at this time shows an overall AQI of 3 at this time, which is incorrect:

Image

It appears that currently:

Of these the first is correct.

Whilst investigating I've noticed that the overall AQI difference displayed for Budapest may also be wrong, it looks like it should be showing 4 and 2 as higher AQI numbers but is instead showing 1 and 3, this could be a symptom of the previous bug and will be investigated here. EDIT : The above is actually working as expected. Where there is a draw on the AQI difference in the first instance we prefer to show the data where the forecast is above the measured.

mnyamunda-scottlogic commented 3 months ago

Charter executed on Budapest 04/08/2024 00:00 here