Skip to content

Commit

Permalink
wip brandenburg
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrehmann committed Aug 13, 2024
1 parent b1c033b commit 919e2be
Show file tree
Hide file tree
Showing 13 changed files with 1,428 additions and 45 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
WD := ../shared-svn/projects/episim/matsim-files

# All available Scenarios
ALL := BerlinBrandenburg
ALL := BerlinBrandenburg Brandenburg

JAR := matsim-episim-*.jar
# Shortcut to the scenario creation tool
Expand All @@ -24,7 +24,7 @@ clean:

# Includes all the scenarios with local variables
# https://stackoverflow.com/questions/32904790/can-i-have-local-variables-in-included-makefiles
SUBDIRS := scenarios/BerlinBrandenburg.mk
SUBDIRS := scenarios/BerlinBrandenburg.mk scenarios/Brandenburg.mk
define INCLUDE_FILE
path = $S
include $S
Expand Down
33 changes: 33 additions & 0 deletions MakefileBerlinBrandenburg
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@


# Working directory
WD := ../shared-svn/projects/episim/matsim-files

# All available Scenarios
ALL := BerlinBrandenburg

JAR := matsim-episim-*.jar
# Shortcut to the scenario creation tool
sc = java -Xmx30G -cp $(JAR) org.matsim.run.ScenarioCreation

.PHONY: all clean $(ALL)

# Default target
all: $(JAR) $(ALL)

$(JAR):
mvn package -DskipTests

clean:
rm -rf target


# Includes all the scenarios with local variables
# https://stackoverflow.com/questions/32904790/can-i-have-local-variables-in-included-makefiles
SUBDIRS := scenarios/BerlinBrandenburg.mk
define INCLUDE_FILE
path = $S
include $S
endef

$(foreach S,$(SUBDIRS),$(eval $(INCLUDE_FILE)))
33 changes: 33 additions & 0 deletions MakefileBrandenburg
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@


# Working directory
WD := ../shared-svn/projects/episim/matsim-files

# All available Scenarios
ALL := Brandenburg

JAR := matsim-episim-*.jar
# Shortcut to the scenario creation tool
sc = java -Xmx30G -cp $(JAR) org.matsim.run.ScenarioCreation

.PHONY: all clean $(ALL)

# Default target
all: $(JAR) $(ALL)

$(JAR):
mvn package -DskipTests

clean:
rm -rf target


# Includes all the scenarios with local variables
# https://stackoverflow.com/questions/32904790/can-i-have-local-variables-in-included-makefiles
SUBDIRS := scenarios/Brandenburg.mk
define INCLUDE_FILE
path = $S
include $S
endef

$(foreach S,$(SUBDIRS),$(eval $(INCLUDE_FILE)))
30 changes: 20 additions & 10 deletions scenarios/BerlinBrandenburg.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ $(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt.xml.gz $(
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz
$(sc) downSample 0.25\
--population $<\
--facilities $(in)/facilities_assigned_simplified.xml.gz\
--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)/facilities0.25.xml.gz $(out)/bb_2020-week_snz_episim_facilities_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
Expand All @@ -57,7 +59,7 @@ $(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt.xml.gz $(
--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\
--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 &: \
Expand All @@ -66,7 +68,7 @@ $(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt.xml.gz $(
--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\
--shape-file $(out)/shape-File/BerlinBrandenburg.shp\
--remap visit --remap leisure\
--output $(out)/wLeisure

Expand All @@ -78,12 +80,14 @@ $(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt_filtered
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz
$(sc) downSample 1.0\
--population $<\
--facilities $(in)/facilities_assigned_simplified.xml.gz\
--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)/facilities1.0.xml.gz $(out)/bb_2020-week_snz_episim_facilities_100pt.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
Expand All @@ -94,7 +98,7 @@ $(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt_filtered
--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\
--shape-file $(out)/shape-File/BerlinBrandenburg.shp\
--output $(out)

#################
Expand All @@ -106,14 +110,16 @@ $(out)/samples/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_10pt.x
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz
$(sc) downSample 0.1\
--population $<\
--facilities $(in)/facilities_assigned_simplified.xml.gz\
--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
mkdir -p $(out)/samples # added -p flag to avoid error if directory already exists

mv $(tmp)/population0.1.xml.gz $(out)/samples//bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_10pt.xml.gz
mv $(tmp)/population0.1.xml.gz $(out)/samples/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_10pt.xml.gz
mv $(tmp)/facilities0.1.xml.gz $(out)/samples/bb_2020-week_snz_episim_facilities_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
Expand All @@ -123,13 +129,15 @@ $(out)/samples/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_5pt_sp
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz
$(sc) downSample 0.05\
--population $<\
--facilities $(in)/facilities_assigned_simplified.xml.gz\
--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
mkdir -p $(out)/samples # added -p flag to avoid error if directory already exists
mv $(tmp)/population0.05.xml.gz $(out)/samples/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_5pt_split.xml.gz
mv $(tmp)/facilities0.05.xml.gz $(out)/samples/bb_2020-week_snz_episim_facilities_5pt.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
Expand All @@ -138,13 +146,15 @@ $(out)/samples/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_1pt_sp
$(out)/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz
$(sc) downSample 0.01\
--population $<\
--facilities $(in)/facilities_assigned_simplified.xml.gz\
--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
mkdir -p $(out)/samples # added -p flag to avoid error if directory already exists
mv $(tmp)/population0.01.xml.gz $(out)/samples/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_1pt_split.xml.gz
mv $(tmp)/facilities0.01.xml.gz $(out)/samples/bb_2020-week_snz_episim_facilities_1pt.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
Expand All @@ -156,5 +166,5 @@ $(out)/samples/bb_2020-week_snz_entirePopulation_emptyPlans_withDistricts_10pt.x
--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\
--shape-file $(out)/shape-File/BerlinBrandenburg.shp\
--output $(out)/samples
170 changes: 170 additions & 0 deletions scenarios/Brandenburg.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
# 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 Brandenburg" in terminal
in = $(WD)/snz/Brandenburg/original-data
out = $(WD)/snz/Brandenburg/episim-input
tmp = $(WD)/snz/Brandenburg/processed-data

Brandenburg: $(JAR) $(out)/br_2020-week_snz_episim_events_wt_25pt_split.xml.gz $(out)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt_split.xml.gz \
$(out)/br_2020-week_snz_episim_events_wt_100pt_split.xml.gz $(out)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt_split.xml.gz
echo "Building Brandenburg Week scenario"

BrandenburgSamples: $(JAR) $(out)/samples/br_2020-week_snz_episim_events_wt_10pt_split.xml.gz $(out)/samples/br_2020-week_snz_episim_events_wt_5pt_split.xml.gz \
$(out)/samples/br_2020-week_snz_episim_events_wt_1pt_split.xml.gz
echo "Building 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/brandenburg.shp\
--shape-crs EPSG:25833\
--output $@



$(out)/br_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)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz: $(out)/br_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)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt.xml.gz $(out)/br_2020-week_snz_episim_events_wt_25pt.xml.gz &: \
$(out)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz
$(sc) downSample 0.25\
--population $<\
--facilities $(in)/facilities_assigned_simplified.xml.gz\
--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)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt.xml.gz
mv $(tmp)/facilities0.25.xml.gz $(out)/br_2020-week_snz_episim_facilities_25pt.xml.gz
mv $(tmp)/de2020gsmwt_events_reduced-0.25.xml.gz $(out)/br_2020-week_snz_episim_events_wt_25pt.xml.gz
mv $(tmp)/de2020gsmsa_events_reduced-0.25.xml.gz $(out)/br_2020-week_snz_episim_events_sa_25pt.xml.gz
mv $(tmp)/de2020gsmso_events_reduced-0.25.xml.gz $(out)/br_2020-week_snz_episim_events_so_25pt.xml.gz

$(out)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt_split.xml.gz $(out)/br_2020-week_snz_episim_events_wt_25pt_split.xml.gz &: \
$(out)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt.xml.gz $(out)/br_2020-week_snz_episim_events_wt_25pt.xml.gz
$(sc) splitHomeFacilities $<\
--events $(out)/br_2020-week_snz_episim_events_wt_25pt.xml.gz\
--events $(out)/br_2020-week_snz_episim_events_sa_25pt.xml.gz\
--events $(out)/br_2020-week_snz_episim_events_so_25pt.xml.gz\
--shape-file $(out)/shape-File/brandenburg.shp\
--output $(out)

$(out)/wLeisure/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt_split.xml.gz $(out)/wLeisure/br_2020-week_snz_episim_events_wt_25pt_split.xml.gz &: \
$(out)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_25pt.xml.gz $(out)/br_2020-week_snz_episim_events_wt_25pt.xml.gz
$(sc) splitHomeFacilities $<\
--events $(out)/br_2020-week_snz_episim_events_wt_25pt.xml.gz\
--events $(out)/br_2020-week_snz_episim_events_sa_25pt.xml.gz\
--events $(out)/br_2020-week_snz_episim_events_so_25pt.xml.gz\
--shape-file $(out)/shape-File/brandenburg.shp\
--remap visit --remap leisure\
--output $(out)/wLeisure

###########
# 100 pct
###########

$(out)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt_filtered.xml.gz $(out)/br_2020-week_snz_episim_events_wt_100pt.xml.gz &: \
$(out)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz
$(sc) downSample 1.0\
--population $<\
--facilities $(in)/facilities_assigned_simplified.xml.gz\
--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)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt_filtered.xml.gz
mv $(tmp)/facilities1.0.xml.gz $(out)/br_2020-week_snz_episim_facilities_100pt.xml.gz
mv $(tmp)/de2020gsmwt_events_reduced-1.0.xml.gz $(out)/br_2020-week_snz_episim_events_wt_100pt.xml.gz
mv $(tmp)/de2020gsmsa_events_reduced-1.0.xml.gz $(out)/br_2020-week_snz_episim_events_sa_100pt.xml.gz
mv $(tmp)/de2020gsmso_events_reduced-1.0.xml.gz $(out)/br_2020-week_snz_episim_events_so_100pt.xml.gz

$(out)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt_split.xml.gz $(out)/br_2020-week_snz_episim_events_wt_100pt_split.xml.gz &: \
$(out)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt_filtered.xml.gz $(out)/br_2020-week_snz_episim_events_wt_100pt.xml.gz
$(sc) splitHomeFacilities $<\
--events $(out)/br_2020-week_snz_episim_events_wt_100pt.xml.gz\
--events $(out)/br_2020-week_snz_episim_events_sa_100pt.xml.gz\
--events $(out)/br_2020-week_snz_episim_events_so_100pt.xml.gz\
--shape-file $(out)/shape-File/brandenburg.shp\
--output $(out)

#################
# 10pct 5pct 1pct
#################


$(out)/samples/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_10pt.xml.gz $(out)/samples/br_2020-week_snz_episim_events_wt_10pt.xml.gz &: \
$(out)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz
$(sc) downSample 0.1\
--population $<\
--facilities $(in)/facilities_assigned_simplified.xml.gz\
--events $(in)/de2020gsmwt_events_reduced.xml.gz\
--events $(in)/de2020gsmsa_events_reduced.xml.gz\
--events $(in)/de2020gsmso_events_reduced.xml.gz\
--output $(tmp)

mkdir -p $(out)/samples # added -p flag to avoid error if directory already exists

mv $(tmp)/population0.1.xml.gz $(out)/samples/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_10pt.xml.gz
mv $(tmp)/facilities0.1.xml.gz $(out)/samples/br_2020-week_snz_episim_facilities_10pt.xml.gz
mv $(tmp)/de2020gsmwt_events_reduced-0.1.xml.gz $(out)/samples/br_2020-week_snz_episim_events_wt_10pt.xml.gz
mv $(tmp)/de2020gsmsa_events_reduced-0.1.xml.gz $(out)/samples/br_2020-week_snz_episim_events_sa_10pt.xml.gz
mv $(tmp)/de2020gsmso_events_reduced-0.1.xml.gz $(out)/samples/br_2020-week_snz_episim_events_so_10pt.xml.gz


$(out)/samples/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_5pt_split.xml.gz $(out)/samples/br_2020-week_snz_episim_events_wt_5pt_split.xml.gz &: \
$(out)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz
$(sc) downSample 0.05\
--population $<\
--facilities $(in)/facilities_assigned_simplified.xml.gz\
--events $(in)/de2020gsmwt_events_reduced.xml.gz\
--events $(in)/de2020gsmsa_events_reduced.xml.gz\
--events $(in)/de2020gsmso_events_reduced.xml.gz\
--output $(tmp)

mkdir -p $(out)/samples # added -p flag to avoid error if directory already exists
mv $(tmp)/population0.05.xml.gz $(out)/samples/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_5pt_split.xml.gz
mv $(tmp)/facilities0.05.xml.gz $(out)/samples/br_2020-week_snz_episim_facilities_5pt.xml.gz
mv $(tmp)/de2020gsmwt_events_reduced-0.05.xml.gz $(out)/samples/br_2020-week_snz_episim_events_wt_5pt_split.xml.gz
mv $(tmp)/de2020gsmsa_events_reduced-0.05.xml.gz $(out)/samples/br_2020-week_snz_episim_events_sa_5pt_split.xml.gz
mv $(tmp)/de2020gsmso_events_reduced-0.05.xml.gz $(out)/samples/br_2020-week_snz_episim_events_so_5pt_split.xml.gz

$(out)/samples/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_1pt_split.xml.gz $(out)/samples/br_2020-week_snz_episim_events_wt_1pt_split.xml.gz &: \
$(out)/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_100pt.xml.gz
$(sc) downSample 0.01\
--population $<\
--facilities $(in)/facilities_assigned_simplified.xml.gz\
--events $(in)/de2020gsmwt_events_reduced.xml.gz\
--events $(in)/de2020gsmsa_events_reduced.xml.gz\
--events $(in)/de2020gsmso_events_reduced.xml.gz\
--output $(tmp)

mkdir -p $(out)/samples # added -p flag to avoid error if directory already exists
mv $(tmp)/population0.01.xml.gz $(out)/samples/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_1pt_split.xml.gz
mv $(tmp)/facilities0.01.xml.gz $(out)/samples/br_2020-week_snz_episim_facilities_1pt.xml.gz
mv $(tmp)/de2020gsmwt_events_reduced-0.01.xml.gz $(out)/samples/br_2020-week_snz_episim_events_wt_1pt_split.xml.gz
mv $(tmp)/de2020gsmsa_events_reduced-0.01.xml.gz $(out)/samples/br_2020-week_snz_episim_events_sa_1pt_split.xml.gz
mv $(tmp)/de2020gsmso_events_reduced-0.01.xml.gz $(out)/samples/br_2020-week_snz_episim_events_so_1pt_split.xml.gz


$(out)/samples/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_10pt_split.xml.gz $(out)/samples/br_2020-week_snz_episim_events_wt_10pt_split.xml.gz &: \
$(out)/samples/br_2020-week_snz_entirePopulation_emptyPlans_withDistricts_10pt.xml.gz $(out)/samples/br_2020-week_snz_episim_events_wt_10pt.xml.gz
$(sc) splitHomeFacilities $<\
--events $(out)/samples/br_2020-week_snz_episim_events_wt_10pt.xml.gz\
--events $(out)/samples/br_2020-week_snz_episim_events_sa_10pt.xml.gz\
--events $(out)/samples/br_2020-week_snz_episim_events_so_10pt.xml.gz\
--shape-file $(out)/shape-File/brandenburg.shp\
--output $(out)/samples
Loading

0 comments on commit 919e2be

Please sign in to comment.