Code for the paper "Characterizing residential segregation in cities using intensity, separation, and scale indicators"
Code for the paper "Characterizing residential segregation in cities using intensity, separation, and scale indicators"
Description
This code is used for computing the results of the paper "Characterizing residential segregation in cities using intensity, separation, and scale indicators".
This code identifies and characterizes residential segregation patterns from demographic data. It is applied in a Dutch case study. It is written in python, using notebooks.
This source code should be stored in a folder named code. The folder code and the folder data (see https://doi.org/10.4121/19597258) should be located in the same directory.
FORMAT
*.mkd;
*.ipynb;
*.txt;
*.csv
RECOMMENDED HARDWARE
-
Processor: Intel® Core™ i5-10210U CPU
-
RAM: 32GiB of RAM (DDR4)
-
GPU: Intel® UHD Graphics GPU
RECOMMENDED OPERATING SYSTEM
Ubuntu 21.10, 64-bit
REQUIRED VERSION OF PYTHON
3.9.7
REQUIRED LIBRARIES USED
see requirements.txt
EXTRA FILE
parameter.csv specifies some parameters used in the analysis.
SEQUENCE OF SCRIPTS
The scripts should be run in the following order:
-
demographics_preprocess.ipynb
-
extract_city_boundary.ipynb
-
extract_street_network.ipynb
-
extract_zones_in_gemeente.ipynb
-
shortest_path.ipynb
-
adjacency_matrix.ipynb
-
correlation_matrix.ipynb
-
exposure.ipynb
-
cluster_analysis.ipynb
-
descriptive_stats.ipynb
-
combine_zones_into_municipalities.ipynb