Geospatial analysis of daily river-flow observations across Poland. The notebook combines IMGW-PIB station metadata with 2024 hydrological measurements, checks which stations can be mapped, and visualises both annual flow patterns and the September 2024 flood in the Odra basin.
- Loads IMGW hydrological station metadata from JSON
- Converts station coordinates into a GeoPandas
GeoDataFrame - Loads daily flow observations for 2024
- Identifies stations missing from the API data or lacking coordinates
- Reviews the effect of excluding unmappable stations from the analysis
- Calculates mean and median flow for each station
- Maps mean annual flow across Poland using a logarithmic scale
- Compares normal median flow with maximum flow during the 13–24 September 2024 flood event
Sources:
- IMGW-PIB hydrological station data
- IMGW-PIB daily hydrological observations
- Natural Earth river geometries
The notebook expects the following local files:
data/
├── danepubliczne_imgw_hydro.json # station metadata (from IMGW API)
├── codz_2024_mod.csv # 2024 daily observations (from IMGW)
├── ne_10m_rivers_lake_centerlines/ # global rivers (Natural Earth)
│ └── ne_10m_rivers_lake_centerlines.shp
└── ne_10m_rivers_europe/ # European rivers (Natural Earth)
└── ne_10m_rivers_europe.shp
Download the files from the sources above and place them in data/ before running.
pip install -r requirements.txt
jupyter lab imgw_flow_2024.ipynbAn internet connection is required when Contextily downloads the basemap tiles.
Python · pandas · NumPy · Matplotlib · GeoPandas · Contextily
Author: Tomasz Piotrowski — LinkedIn
