This TIPE was done during my years in Scientific Preparatory Classes at the Lycée Champollion (Grenoble, France) from 2022 to 2023.
The theme of the year was : the City.
A TIPE ("Travaux d'Initiatives Personnells encadrées", literally Supervised Personal Initiative Work) is a project lead during the cursus in Preparatory Class for the competitive exams to access to engineering schools.
This TIPE is about the study of cities and their evolution with mathematical models. Here, I modelised the city of Grenoble with fractals, in order to answer the following problematic :
In what extend do fractals help us to understand the evolution of our cities ?
In this document I will apply the mathematical model of fractal to cities and their outskirts. It will help me to extract pieces of infomations such as the associated Box-Counting dimension (a fractal dimension) thanks to the Box-Counting Method. We will see that the Fractal Dimensions are an upgraded density of buildings.
For this, I will use the programming language Python.
First, you need a black and white image depicting the location of each builidings of the city you consider (cf Data Source for France).
Then the only file main_script.py
to use it with the function :
main_script(city, year, resolution, dilatation, src_dir, data_dir, result_dir, used_old_data, show_fig)
city
: name of the studied cityyear
: year of the studyresolution
: factor of division of the image's sidedilatation
: factor of dilatation of the source-imagesrc_dir
: Directory of the source-imagedata_dir
: Directory where the temporary data will be createdresult_dir
: Directory where results will be createdused_old_data
(default :False
) : Boolean if old data are already created and can be re-usedshow_fig
(default :True
) : Condition if plot is displayed at the end of the analysis
One example :
main_script("Grenoble", 2023, 1, 1, "src/grenoble_2023.png", "data", "results")
visualization.py
displays old results that are written in a CSV file with the function :
display(resolution, src, title, nb_raws, cmap_name)
resolution
: List of the resolution of each result-filessrc
: List of the directory of each result-filestitle
: List of titles to displaynb_raws
(default :1
) : Number of raws to displaycmap_name
(default :inferno
) : Name of the theme of the MatPlotLib ColorMap
For instance :
display([130], ["results/agglomeration_grenobloise/Grenoble_2023_130x130.csv"], ["Grenoble 2023"])
- BD TOPO® : Map of all buildings in Metropolitan France. Created by the IGN ("Institut Géographique National", literally National Geographic Institute).
Fractal Analysis of the City of Grenoble and its outskirt in 2023. The surface of each cell is about 6.25ha.
- Processor : Intel Core i5 vPro (2,30GHz)
- RAM : 8GB
- Memory : 512GB SSD
- Programming Language : Python 3.9.2
-
Dierk Schleicher : Hausdorff Dimension, its Properties, and its Surprises (Sections 1 to 4)
-
Mark McClure : Chaos and Fractals
-
Ivana Konatar, Natasa Popovic & Tomo Popovic : Box-Counting Method in Python for Fractal Analysis of Biomedical Images
-
Khaled Harrar & Latifa Hamami : The box counting method for evaluate the fractal Dimension in radiographic images
-
Sara Encarnação, Marcos Gaudiano, Francisco C. Santos, José A. Tenedório, & Jorge M Pacheco : Fractal Carthography of urban area