-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
4,323 additions
and
627 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
# To run this, you need a newer version of make. 4.4.1 works (in macOS under the command of gmake) | ||
# To run, execute "gmake BerlinBrandenburg" in terminal | ||
in = $(WD)/snz/BerlinBrandenburg/original-data | ||
out = $(WD)/snz/BerlinBrandenburg/episim-input | ||
tmp = $(WD)/snz/BerlinBrandenburg/processed-data | ||
|
||
BerlinBrandenburg: $(JAR) $(out)/bb_2020-week_snz_episim_events_wt_25pt_split.xml.gz $(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt_split.xml.gz \ | ||
$(out)/bb_2020-week_snz_episim_events_wt_100pt_split.xml.gz $(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt_split.xml.gz | ||
echo "Building Berlin Brandenburg Week scenario" | ||
|
||
BerlinBrandenburgSamples: $(JAR) $(out)/samples/bb_2020-week_snz_episim_events_wt_10pt_split.xml.gz $(out)/samples/bb_2020-week_snz_episim_events_wt_5pt_split.xml.gz \ | ||
$(out)/samples/bb_2020-week_snz_episim_events_wt_1pt_split.xml.gz | ||
echo "Building Berlin Brandenburg Week samples" | ||
|
||
$(tmp)/personIds.diluted.txt.gz: | ||
$(sc) filterPersons $(in)/de2020gsmwt_events_reduced.xml.gz\ | ||
--facilities $(in)/facilities_assigned_simplified.xml.gz\ | ||
--attributes $(in)/populationAttributes.xml.gz\ | ||
--shape-file $(out)/shape-File/BerlinBrandenburg.shp\ | ||
--shape-crs EPSG:25833\ | ||
--output $@ | ||
|
||
|
||
|
||
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_100pt.xml.gz: $(tmp)/personIds.diluted.txt.gz | ||
$(sc) convertPersonAttributes $(in)/populationAttributes.xml.gz\ | ||
--ids $<\ | ||
--requireAttribute "microm:modeled:age"\ | ||
--output $@ | ||
|
||
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz: $(out)/bb_2020-week_snz_entirePopulation_emptyPlans_100pt.xml.gz | ||
$(sc) districtLookup $<\ | ||
--output $@\ | ||
--shp ../public-svn/matsim/scenarios/countries/de/episim/original-data/landkreise-in-germany/landkreise-in-germany.shp | ||
|
||
######## | ||
# 25pct | ||
######## | ||
|
||
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt.xml.gz $(out)/bb_2020-week_snz_episim_events_wt_25pt.xml.gz &: \ | ||
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz | ||
$(sc) downSample 0.25\ | ||
--population $<\ | ||
--events $(in)/de2020gsmwt_events_reduced.xml.gz\ | ||
--events $(in)/de2020gsmsa_events_reduced.xml.gz\ | ||
--events $(in)/de2020gsmso_events_reduced.xml.gz\ | ||
--output $(tmp) | ||
|
||
mv $(tmp)/population0.25.xml.gz $(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt.xml.gz | ||
mv $(tmp)/de2020gsmwt_events_reduced-0.25.xml.gz $(out)/bb_2020-week_snz_episim_events_wt_25pt.xml.gz | ||
mv $(tmp)/de2020gsmsa_events_reduced-0.25.xml.gz $(out)/bb_2020-week_snz_episim_events_sa_25pt.xml.gz | ||
mv $(tmp)/de2020gsmso_events_reduced-0.25.xml.gz $(out)/bb_2020-week_snz_episim_events_so_25pt.xml.gz | ||
|
||
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt_split.xml.gz $(out)/bb_2020-week_snz_episim_events_wt_25pt_split.xml.gz &: \ | ||
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt.xml.gz $(out)/bb_2020-week_snz_episim_events_wt_25pt.xml.gz | ||
$(sc) splitHomeFacilities $<\ | ||
--events $(out)/bb_2020-week_snz_episim_events_wt_25pt.xml.gz\ | ||
--events $(out)/bb_2020-week_snz_episim_events_sa_25pt.xml.gz\ | ||
--events $(out)/bb_2020-week_snz_episim_events_so_25pt.xml.gz\ | ||
--shape-file $(out)/../shape-File/BerlinBrandenburg.shp\ | ||
--output $(out) | ||
|
||
$(out)/wLeisure/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt_split.xml.gz $(out)/wLeisure/bb_2020-week_snz_episim_events_wt_25pt_split.xml.gz &: \ | ||
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt.xml.gz $(out)/bb_2020-week_snz_episim_events_wt_25pt.xml.gz | ||
$(sc) splitHomeFacilities $<\ | ||
--events $(out)/bb_2020-week_snz_episim_events_wt_25pt.xml.gz\ | ||
--events $(out)/bb_2020-week_snz_episim_events_sa_25pt.xml.gz\ | ||
--events $(out)/bb_2020-week_snz_episim_events_so_25pt.xml.gz\ | ||
--shape-file $(out)/../shape-File/dilutionArea.shp\ | ||
--remap visit --remap leisure\ | ||
--output $(out)/wLeisure | ||
|
||
########### | ||
# 100 pct | ||
########### | ||
|
||
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt_filtered.xml.gz $(out)/bb_2020-week_snz_episim_events_wt_100pt.xml.gz &: \ | ||
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz | ||
$(sc) downSample 1.0\ | ||
--population $<\ | ||
--events $(in)/de2020gsmwt_events_reduced.xml.gz\ | ||
--events $(in)/de2020gsmsa_events_reduced.xml.gz\ | ||
--events $(in)/de2020gsmso_events_reduced.xml.gz\ | ||
--output $(tmp) | ||
|
||
mv $(tmp)/population1.0.xml.gz $(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt_filtered.xml.gz | ||
mv $(tmp)/de2020gsmwt_events_reduced-1.0.xml.gz $(out)/bb_2020-week_snz_episim_events_wt_100pt.xml.gz | ||
mv $(tmp)/de2020gsmsa_events_reduced-1.0.xml.gz $(out)/bb_2020-week_snz_episim_events_sa_100pt.xml.gz | ||
mv $(tmp)/de2020gsmso_events_reduced-1.0.xml.gz $(out)/bb_2020-week_snz_episim_events_so_100pt.xml.gz | ||
|
||
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt_split.xml.gz $(out)/bb_2020-week_snz_episim_events_wt_100pt_split.xml.gz &: \ | ||
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt_filtered.xml.gz $(out)/bb_2020-week_snz_episim_events_wt_100pt.xml.gz | ||
$(sc) splitHomeFacilities $<\ | ||
--events $(out)/bb_2020-week_snz_episim_events_wt_100pt.xml.gz\ | ||
--events $(out)/bb_2020-week_snz_episim_events_sa_100pt.xml.gz\ | ||
--events $(out)/bb_2020-week_snz_episim_events_so_100pt.xml.gz\ | ||
--shape-file $(out)/../shape-File/dilutionArea.shp\ | ||
--output $(out) | ||
|
||
################# | ||
# 10pct 5pct 1pct | ||
################# | ||
|
||
|
||
$(out)/samples/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_10pt.xml.gz $(out)/samples/bb_2020-week_snz_episim_events_wt_10pt.xml.gz &: \ | ||
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz | ||
$(sc) downSample 0.1\ | ||
--population $<\ | ||
--events $(in)/de2020gsmwt_events_reduced.xml.gz\ | ||
--events $(in)/de2020gsmsa_events_reduced.xml.gz\ | ||
--events $(in)/de2020gsmso_events_reduced.xml.gz\ | ||
--output $(tmp) | ||
|
||
mkdir $(out)/samples | ||
|
||
mv $(tmp)/population0.1.xml.gz $(out)/samples//bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_10pt.xml.gz | ||
mv $(tmp)/de2020gsmwt_events_reduced-0.1.xml.gz $(out)/samples/bb_2020-week_snz_episim_events_wt_10pt.xml.gz | ||
mv $(tmp)/de2020gsmsa_events_reduced-0.1.xml.gz $(out)/samples/bb_2020-week_snz_episim_events_sa_10pt.xml.gz | ||
mv $(tmp)/de2020gsmso_events_reduced-0.1.xml.gz $(out)/samples/bb_2020-week_snz_episim_events_so_10pt.xml.gz | ||
|
||
|
||
$(out)/samples/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_5pt_split.xml.gz $(out)/samples/bb_2020-week_snz_episim_events_wt_5pt_split.xml.gz &: \ | ||
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz | ||
$(sc) downSample 0.05\ | ||
--population $<\ | ||
--events $(in)/de2020gsmwt_events_reduced.xml.gz\ | ||
--events $(in)/de2020gsmsa_events_reduced.xml.gz\ | ||
--events $(in)/de2020gsmso_events_reduced.xml.gz\ | ||
--output $(tmp) | ||
|
||
mkdir $(out)/samples | ||
mv $(tmp)/population0.05.xml.gz $(out)/samples//bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_5pt_split.xml.gz | ||
mv $(tmp)/de2020gsmwt_events_reduced-0.05.xml.gz $(out)/samples/bb_2020-week_snz_episim_events_wt_5pt_split.xml.gz | ||
mv $(tmp)/de2020gsmsa_events_reduced-0.05.xml.gz $(out)/samples/bb_2020-week_snz_episim_events_sa_5pt_split.xml.gz | ||
mv $(tmp)/de2020gsmso_events_reduced-0.05.xml.gz $(out)/samples/bb_2020-week_snz_episim_events_so_5pt_split.xml.gz | ||
|
||
$(out)/samples/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_1pt_split.xml.gz $(out)/samples/bb_2020-week_snz_episim_events_wt_1pt_split.xml.gz &: \ | ||
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz | ||
$(sc) downSample 0.01\ | ||
--population $<\ | ||
--events $(in)/de2020gsmwt_events_reduced.xml.gz\ | ||
--events $(in)/de2020gsmsa_events_reduced.xml.gz\ | ||
--events $(in)/de2020gsmso_events_reduced.xml.gz\ | ||
--output $(tmp) | ||
|
||
mkdir $(out)/samples | ||
mv $(tmp)/population0.01.xml.gz $(out)/samples//bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_1pt_split.xml.gz | ||
mv $(tmp)/de2020gsmwt_events_reduced-0.01.xml.gz $(out)/samples/bb_2020-week_snz_episim_events_wt_1pt_split.xml.gz | ||
mv $(tmp)/de2020gsmsa_events_reduced-0.01.xml.gz $(out)/samples/bb_2020-week_snz_episim_events_sa_1pt_split.xml.gz | ||
mv $(tmp)/de2020gsmso_events_reduced-0.01.xml.gz $(out)/samples/bb_2020-week_snz_episim_events_so_1pt_split.xml.gz | ||
|
||
|
||
$(out)/samples/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_10pt_split.xml.gz $(out)/samples/bb_2020-week_snz_episim_events_wt_10pt_split.xml.gz &: \ | ||
$(out)/samples/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_10pt.xml.gz $(out)/samples/bb_2020-week_snz_episim_events_wt_10pt.xml.gz | ||
$(sc) splitHomeFacilities $<\ | ||
--events $(out)/samples/bb_2020-week_snz_episim_events_wt_10pt.xml.gz\ | ||
--events $(out)/samples/bb_2020-week_snz_episim_events_sa_10pt.xml.gz\ | ||
--events $(out)/samples/bb_2020-week_snz_episim_events_so_10pt.xml.gz\ | ||
--shape-file $(out)/../shape-File/dilutionArea.shp\ | ||
--output $(out)/samples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.