Skip to content

Commit c27458d

Browse files
authored
Update workflows.md
1 parent d4f2d2a commit c27458d

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

docs/workflows.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -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

1817
Run the getData.sh script.
1918

20-
shell script
2119
source getData.sh
2220

2321
It will:
@@ -38,24 +36,20 @@ Note: We should have these files on IPFS very soon.
3836

3937
This 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

4441
Where *dep_list* is a list of "départements" you wish to extract from your data and *prepared_data* is the output directory.
4542

4643
For 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

5147
The 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

5651
The 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

6155
You get the idea, right?
@@ -67,17 +61,14 @@ The parameters should look familiar.
6761

6862
For 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

7366
For Î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

7870
For 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

8778
For Î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

9282
For 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

9786
And now, you have a Metropolitan France synthetic population!
@@ -101,7 +90,6 @@ And now, you have a Metropolitan France synthetic population!
10190

10291
If 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

10795
To 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

116104
For Î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

123110
For 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

128114
Please 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

132118
Generate 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

137122
Generate 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

142126
To 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

147130
You can now see it if you open the index.html in you browser.
148131
You 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

157139
For Î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

162143
For 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

Comments
 (0)