Climate-Change-Effect-on-Europe

VIG-IE Insurance and Tech Lab

Language Last Commit License Flask

⭐ Star this project - it helps others discover it and supports development!

Map Visualization with Flask and Leaflet

This Flask application visualizes European population, mortality, and temperature data interactively on a map using Leaflet on the frontend and Chart.js for time series. It supports multi-scale zoom and analysis, with additional granularity for Vienna at the NUTS-3 level.

It is hosted on Python Anywhere for easy access and exploration.

Table of Contents

About

This project provides an interactive dashboard using Flask and Folium to explore the Climate Change Effect on Europe (CCEE):

See the project structure here: http://danielprecioso.com/Climate-Change-Effect-on-Europe/

Features

Project Structure

├── data/ # Input and downloaded data
├── scripts/ # Data processing scripts
├── static/ # JS, CSS, assets
├── templates/ # HTML views
├── app.py # Flask server
├── requirements.txt
└── README.md

Quick-Start Guide

1 . Clone the repository

git clone https://github.com/daniprec/Climate-Change-Effect-on-Europe.git
cd Climate-Change-Effect-on-Europe

2 . Choose which dependencies to install

Scenario File to install Typical use
Run the web app only requirements.txt PythonAnywhere / prod
Do data prep, notebooks, model fitting requirements‑dev.txt Local dev / CI
# minimal runtime stack
pip install -r requirements.txt

# OR full analytics stack
pip install -r requirements‑dev.txt

3 . Install the project package itself

This makes the ccee library importable:

pip install .

Editable mode for active development:

pip install -e .

4 . Launch the Flask server

python app.py

Open your browser at http://127.0.0.1:5000/ to explore the interactive map.


Tips:

How to Download Data

Most of the data used in this project is available through public APIs or data portals. You can build the files used by the map just by running:

python scripts/build_geojson.py
python scripts/build_csv.py

The only data that needs to be downloaded manually is the CORDEX CMIP data, which requires a WGET script. Below are the instructions for downloading and preparing the data.

Pipeline overview diagramdocs/pipeline_overview.md

Step-by-step data & script detailsdocs/pipeline_details.md

License

This project is licensed under the MIT License, permitting reuse with attribution. Feel free to fork and adapt for academic or personal use.

Contacts

For questions or suggestions, feel free to reach out:

We welcome feedback and contributions-help us grow this project!

Back to top