The project gathers the image dataset of rain map masks in Europe around Berlin and converts its to gif for last 48 hours.
Libraries: requests, pandas, plotly, geopy, datetime, timezonefinder, pytz, PIL, io, glob, os
-
The image dataset of past rain maps and forecast rain maps were gathered from RainViewer using API requests.
-
The data are displayed at timestamps that are multiples of 10 minutes (HH:00, HH:10, ..., HH:50). Past data are available for last 2 hours (13 timestamps), and forecast data are available for following 30 minutes (3 timestamps). To gather a full dataset of past data, I launch the code every 2 hours by building CI/CD pipelines in GitHub Actions. The code is in rainviewer_api.ipynb file.
-
The data of cities with their coordinates and population are downloaded from simplemaps.com.
- Every rain map looks like this image below:
-
The data of cities are marked on the geographic map using Plotly. The background map with cities is in background_png folder.
-
Gathered past images for last 48 hours are merged into a gif file and added the background map. The final gif is in past_gif folder. The example of result is also below: