Observed variation between actual summary table data for London (forecast base time: 18 Aug 12:00, forecast window: 1), and expected data from a manual calculation.
Steps to reproduce:
- query in_situ_data database for:
{ $and: [
{"measurement_date": {
$gte: new ISODate('2024-08-18T10:30:00.000+00:00'),
$lte: new ISODate('2024-08-19T13:30:00.000+00:00')}
},
{"name": "London"}
]}
{ $and:[
{"forecast_base_time": new ISODate('2024-08-18T12:00:00.000+00:00')},
{"name": "London"}
]}
- extract from forecast data the first 9 valid times as they will correspond to the time range needed
- compare UI table for this time range with the data collected
Expected:
- data in UI corresponds to values that are the greatest difference between forecast and measured AQI
- the values in the table are the same
Actual:
- some variance discovered up to 3.15%

- Some unpredictable behaviour in terms of which time stamp is selected by UI to represent the diff, sometimes it is first time, sometimes a different one selected

Test Checklist:
Observed variation between actual summary table data for London (forecast base time: 18 Aug 12:00, forecast window: 1), and expected data from a manual calculation.
Steps to reproduce:
at each 3hr increment, for each pollutant, average the data for the surrounding +/- 1.5hrs
calculate AQI
query forecast_data for:
Expected:
Actual:
Test Checklist: