Jak odczytać prognozę pogody w R? API do the Dark Sky

Przygotowując materiały do kursu 'Bądź data-smaRt’ (tytuł roboczy), potrzebowałem prognozy pogody. Krótkie poszukiwania w celu automatycznego i publicznie dostępnego API zaowocowały nową funkcją w pakiecie SmarterPoland, która pozwala na pobranie prognoz godzinnych i dniowych dla temperatury, ciśnienia, zachmurzenia i wielu innych ciekawych parametrów.

W dwóch linijkach, można pobrać prognozy i je narysować w R. Zobaczmy jak.

Czytaj dalej Jak odczytać prognozę pogody w R? API do the Dark Sky

Variability of weather forecasts

Screen Shot 2014-11-02 at 20.30.19

Have you wondered how stable are weather forecasts?
Since

curiosity + R = fun,

let’s do a little test.

I’ve used a function getWeatherForecast {SmarterPoland} (github release) to download weather forecasts from the Dark Sky API. Hourly forecasts are downloaded every 10 minutes and stored in this repository based on archivist package (it’s easier to manage larger collection of objects). Having a bundle of forecasts I’ve plot them with the use of ggplot2 package and create an animation with the use of animation package.

And here it is (if you do not see the move above, click here).
Short movie with evolution of temperature forecast for The All Saints’ day in Warsaw.
Red curve – current forecast, grey curves – old forecasts, blue curve – history.

It’s funny that colder forecasts for first evening go with warmer forecasts of next morning.
And changes in weather forecasts are not that smooth as I’ve expected.