@@ -8,7 +8,6 @@ editor_options:
88
99## Install
1010
11- shell script
1211 sbt publishLocal
1312
1413## Generate a synthetic population for your study area
@@ -17,7 +16,6 @@ editor_options:
1716
1817Run the getData.sh script.
1918
20- shell script
2119 source getData.sh
2220
2321It will:
@@ -38,24 +36,20 @@ Note: We should have these files on IPFS very soon.
3836
3937This whole process can be automatically done using the following command:
4038
41- shell script
4239 sbt "runMain eighties.h24.tools.ExtractRelevantData -c data/CONTOURS-IRIS_2-0__SHP_LAMB93_FXX_2014-01-01/CONTOURS-IRIS/1_DONNEES_LIVRAISON_2014/CONTOURS-IRIS_2-0_SHP_LAMB93_FE-2014/CONTOURS-IRIS_FE.shp -g data/GRID/R_rfl09_LAEA1000.shp -p data/base-ic-evol-struct-pop-2012.xls -f data/base-ic-diplomes-formation-2012.xls -d dep_list -o prepared_data"
4340
4441Where * dep_list* is a list of "départements" you wish to extract from your data and * prepared_data* is the output directory.
4542
4643For instance, the following command extracts the data for the 44 département (Loire Atlantique):
4744
48- shell script
4945 sbt "runMain eighties.h24.tools.ExtractRelevantData -c data/CONTOURS-IRIS_2-0__SHP_LAMB93_FXX_2014-01-01/CONTOURS-IRIS/1_DONNEES_LIVRAISON_2014/CONTOURS-IRIS_2-0_SHP_LAMB93_FE-2014/CONTOURS-IRIS_FE.shp -g data/GRID/R_rfl09_LAEA1000.shp -p data/base-ic-evol-struct-pop-2012.xls -f data/base-ic-diplomes-formation-2012.xls -d 44 -o prepared_data_44"
5046
5147The following command extracts the data for the entire Île-de-France région:
5248
53- shell script
5449 sbt "runMain eighties.h24.tools.ExtractRelevantData -c data/CONTOURS-IRIS_2-0__SHP_LAMB93_FXX_2014-01-01/CONTOURS-IRIS/1_DONNEES_LIVRAISON_2014/CONTOURS-IRIS_2-0_SHP_LAMB93_FE-2014/CONTOURS-IRIS_FE.shp -g data/GRID/R_rfl09_LAEA1000.shp -p data/base-ic-evol-struct-pop-2012.xls -f data/base-ic-diplomes-formation-2012.xls -d 75,77,78,91,92,93,94,95 -o prepared_data_IDF"
5550
5651The following command extracts the data for Metropolitan France:
5752
58- shell script
5953 sbt "runMain eighties.h24.tools.ExtractRelevantData -c data/CONTOURS-IRIS_2-0__SHP_LAMB93_FXX_2014-01-01/CONTOURS-IRIS/1_DONNEES_LIVRAISON_2014/CONTOURS-IRIS_2-0_SHP_LAMB93_FE-2014/CONTOURS-IRIS_FE.shp -g data/GRID/R_rfl09_LAEA1000.shp -p data/base-ic-evol-struct-pop-2012.xls -f data/base-ic-diplomes-formation-2012.xls -o prepared_data"
6054
6155You get the idea, right?
@@ -67,17 +61,14 @@ The parameters should look familiar.
6761
6862For Loire-Atlantique:
6963
70- shell script
7164 sbt "runMain eighties.h24.tools.PopulationGenerator -c prepared_data_44/CONTOURS-IRIS_FE.shp -g prepared_data_44/R_rfl09_LAEA1000.shp -s 1000 -p prepared_data_44/base-ic-evol-struct-pop-2012.csv.lzma -f prepared_data_44/base-ic-diplomes-formation-2012.csv.lzma -o results_44/population.bin"
7265
7366For Île-de-France (note we added a JVM option to give more memory to the process):
7467
75- shell script
7668 sbt -J-Xmx4G "runMain eighties.h24.tools.PopulationGenerator -c prepared_data_IDF/CONTOURS-IRIS_FE.shp -g prepared_data_IDF/R_rfl09_LAEA1000.shp -s 1000 -p prepared_data_IDF/base-ic-evol-struct-pop-2012.csv.lzma -f prepared_data_IDF/base-ic-diplomes-formation-2012.csv.lzma -o results_IDF/population.bin"
7769
7870For Metropolitan France:
7971
80- shell script
8172 sbt -J-Xmx8G "runMain eighties.h24.tools.PopulationGenerator -c prepared_data/CONTOURS-IRIS_FE.shp -g prepared_data/R_rfl09_LAEA1000.shp -s 1000 -p prepared_data/base-ic-evol-struct-pop-2012.csv.lzma -f prepared_data/base-ic-diplomes-formation-2012.csv.lzma -o results/population.bin"
8273
8374### Export you synthetic population!
@@ -86,12 +77,10 @@ You can also export the population as a shapefile to see how it looks like.
8677
8778For Île-de-France (note we added a JVM option to give more memory to the process):
8879
89- shell script
9080 sbt -J-Xmx4G "runMain eighties.h24.tools.PopulationShapefileExporter -p results_IDF/population.bin -o results_IDF/population.shp"
9181
9282For Metropolitan France, a shapefile will not work, you can use the geopackage exporter:
9383
94- shell script
9584 sbt -J-Xmx8G "runMain eighties.h24.tools.PopulationGeopackageExporter -p results/population.bin -o results/population.gpkg"
9685
9786And now, you have a Metropolitan France synthetic population!
@@ -101,7 +90,6 @@ And now, you have a Metropolitan France synthetic population!
10190
10291If you want to create a synthetic population in buildings, you can do so.
10392
104- shell script
10593 sbt -J-Xmx4G "runMain eighties.h24.tools.PopulationInBuildingsGenerator -o results/populationInBuildings.gpkg -c prepared_data/CONTOURS-IRIS_FE.shp -b prepared_data/buildings.shp -p prepared_data/base-ic-evol-struct-pop-2012.csv.lzma -f prepared_data/base-ic-diplomes-formation-2012.csv.lzma"
10694
10795To illustrate the results, here is a map of a population generated for Paris.
@@ -115,14 +103,12 @@ For more data about origin-destination survey and methods for pre-processing, pl
115103
116104For Île-de-France (note we added a JVM option to give more memory to the process):
117105
118- shell script
119106 unzip InputODData/H24_location_noID_ParisRegion.zip -d prepared_data_IDF/
120107 lzma -f prepared_data_IDF/H24_location_noID_ParisRegion.csv
121108 sbt -J-Xmx4G "runMain eighties.h24.tools.MoveMatrixGenerator -e prepared_data_IDF/H24_location_noID_ParisRegion.csv.lzma -s EPSG:27572 -p results_IDF/population.bin -m results_IDF/moves.bin"
122109
123110For Loire-Atlantique (note we added a JVM option to give more memory to the process):
124111
125- shell script
126112 sbt -J-Xmx4G "runMain eighties.h24.tools.MoveMatrixGenerator -e prepared_data_44/H24_location_noID_NantesRegion.csv.lzma -s EPSG:2154 -p results_44/population.bin -m results_44/moves.bin"
127113
128114Please also note that we need to specify the SRID used in the input survey.
@@ -131,23 +117,19 @@ Please also note that we need to specify the SRID used in the input survey.
131117
132118Generate the matrix destinations
133119
134- shell script
135120 sbt -J-Xmx4G "runMain eighties.h24.tools.EGTShapefileExporter -p results_IDF/population.bin -m results_IDF/moves.bin -d true -o results_IDF/destinations.shp"
136121
137122Generate the matrix origins
138123
139- shell script
140124 sbt -J-Xmx4G "runMain eighties.h24.tools.EGTShapefileExporter -p results_IDF/population.bin -m results_IDF/moves.bin -d false -o results_IDF/origins.shp"
141125
142126To see what the matrix looks like, you can generate a CSV file containing (parts of) the OD flows:
143127
144- shell script
145128 sbt -J-Xmx4G "runMain eighties.h24.tools.EGTShapefileExporter -p results_IDF/population.bin -m results_IDF/moves.bin -o flowmap/flows.csv"
146129
147130You can now see it if you open the index.html in you browser.
148131You can also filter the flows using a timeslice, sex, age, education & a percentile:
149132
150- shell script
151133 sbt -J-Xmx4G "runMain eighties.h24.tools.EGTCSVExporter -p results_IDF/population.bin -m results_IDF/moves.bin -t 0 -a 1 -s 1 -e 1 -o flowmap/flows_0_1_1_1_0.5.csv"
152134
153135### Run an "empty" Simulation
@@ -156,10 +138,8 @@ You can now run a simple 'empty' simulation with the test app.
156138
157139For Île-de-France:
158140
159- shell script
160141 sbt -J-Xmx2G "runMain eighties.h24.tools.SimulationApp -p results_IDF/population.bin -m results_IDF/moves.bin -d 1 -o maps_IDF"
161142
162143For Loire-Atlantique:
163144
164- shell script
165145 sbt -J-Xmx2G "runMain eighties.h24.tools.SimulationApp -p results_44/population.bin -m results_44/moves.bin -d 1 -o maps_44"
0 commit comments