A new attempt to incorporate weather forecasts into the GES model.
The previous attempt did not work because historical weather data was first being written to .csv files after retrieving it from the database, after which the data was read from the .csv file by the GES model - something I hadn't realized.
This is because the USE_LIVE flag in TestScenarioV1_1.py is set to False, i.e. the GES model reads data from disk rather than pulling it from the DB when it needs it.
A similar approach has been followed for forecast weather data.
The code has been run locally and works fine.
A comparison between temperature predictions without (top) and with (bottom) weather forecasts is shown below.
A new attempt to incorporate weather forecasts into the GES model. The previous attempt did not work because historical weather data was first being written to .csv files after retrieving it from the database, after which the data was read from the .csv file by the GES model - something I hadn't realized. This is because the
USE_LIVE
flag inTestScenarioV1_1.py
is set toFalse
, i.e. the GES model reads data from disk rather than pulling it from the DB when it needs it. A similar approach has been followed for forecast weather data. The code has been run locally and works fine. A comparison between temperature predictions without (top) and with (bottom) weather forecasts is shown below.