Scripts for processing and open-sourcing a dataset that contains different data about Kenya, with hope of providing researchers, policymakers, and business with a more comprehensive overview of the socio-economic state of the country
# Mapping for Economic Development (KENYA)
## Project Overview
This project aims to curate and open source a novel dataset aimed at fostering
economic development in Africa, with an initial focus on Kenya. The dataset will combine
various geographical and demographic data to enable businesses, researchers, and possibly lawmakers to make better informed decisions, conduct valuable analyses, and have a better understanding and overview of the geographical area of their choosing.
This project curates and open sources a novel dataset designed to foster economic development in Africa, starting with Kenya. By combining geospatial and demographic data, this dataset's goal is to enable businesses, researchers, and policymakers to make data-driven decisions, conduct meaningful analyses, and gain detailed insights into specific geographical areas (all relevant data in one place).
## Folder Structure
```
mapping-for-economic-development/
├── LICENSE.txt
├── README.md
├── .gitignore
├── requirements.txt
├── src/
│ ├── aggregate_age_demographics.py
│ ├── aggregate_all_h3_data.py
│ ├── merge_pop_age_demographics.py
│ ├── process_financial_services_points.py
│ ├── process_points_of_interest.py
data/ # data to be downloaded from the open-source dataset
├── raw
├── processed
```
### Scripts contents
- `aggregate_age_demographics.py`: This script processes the files in the folder `raw/KEN_population_v2_0_agesex`. It loads all the .tif files, extracts the data corresponding to each age range along with the coordinates (which it converts to a different map projection if needed) and creates a column with the h3 indices. Once all the files have been processed, it outputs a csv with all the data merged on the h3 IDs. The output csv will have a list of h3 hexagons with the age demographics (number of males/females under specific age), named `KEN_age_sex_aggregated.csv`.
- `merge_pop_age_demographics.py`: This script reads the data from the file `kontur_population_KE_20231101 …