Scripts and data to generate figures of the paper "Proper pandemic preparedness requires an integrated cross-regional effort, the case of the ECLIPSE consortium in America: a narrative review".
This repository contains two Python scripts for geospatial data visualization using GeoPandas and Matplotlib. The scripts visualize global data on dengue notification rates and H5N1 HPAI (Highly Pathogenic Avian Influenza) affected countries.
- Python 3.x
- Required Python libraries:
pandasgeopandasmatplotlib
- Input data files:
- Dengue notification rates:
dengue_oct23_sep24.csv - H5N1 affected countries:
H5N1_1oct2023-30sep2024_FAO_only_countries.csv
- Dengue notification rates:
- World shapefile:
110m_cultural/ne_110m_admin_0_countries.shp
This script visualizes dengue notification rates across countries, creating a choropleth map with color gradients representing notification rates.
- Displays global notification rates as a color-coded map.
- Highlights countries with missing data in light grey.
- Saves the map as a high-resolution PDF.
- Place the input files
dengue_oct23_sep24.csvand the world shapefile in the specified directories. - Run the script.
- The output map will be saved as
dengue_rates_2024.pdf.
- Data is merged using the country names in the shapefile (
ADMIN) and CSV (Country). - Missing values are visualized in light grey.
- The output plot is titled: "Dengue Notification Rates Around the World (2024)".
This script visualizes countries affected by H5N1 HPAI (2023–2024) using a binary map.
- Affected countries are marked in red.
- Non-affected or countries with no data are shown in light grey.
- Adds a custom legend differentiating affected and non-affected countries.
- Saves the map as a high-resolution PDF.
- Place the input files
H5N1_1oct2023-30sep2024_FAO_only_countries.csvand the world shapefile in the specified directories. - Update the
country_name_mappingdictionary to ensure country names match between the CSV and shapefile. - Run the script.
- The output map will be saved as
HPAI_map.pdf.
- Uses a dictionary (
country_name_mapping) to align mismatched country names between the input data and shapefile. - Adds a custom legend for affected and non-affected countries.
- Country Name Mismatches: Ensure the
Countrycolumn in the CSV matches theADMINfield in the shapefile. Update thecountry_name_mappingas needed. - Shapefile Path: Ensure the path to the shapefile is correct.
- Dengue Notification Rates Map:
dengue_rates_2024.pdf - H5N1 Affected Countries Map:
HPAI_map.pdf
dengue_oct23_sep24.csv: Input CSV for dengue dataH5N1_1oct2023-30sep2024_FAO_only_countries.csv: Input CSV for H5N1 data110m_cultural/: Directory containing the world shapefilene_110m_admin_0_countries.shp: World shapefile
dengue_visualization.py: Script for dengue visualizationh5n1_visualization.py: Script for H5N1 visualizationdengue_rates_2024.pdf: Output dengue mapHPAI_map.pdf: Output H5N1 map
For any questions or issues, please open an issue in this repository.