-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
60 lines (49 loc) · 1.88 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
SHARED-SVN := C:/Users/Janekdererste/repos/shared-svn
VERSION := matsim-velbert-v1.0
OUTPUT_FOLDER := projects/matsim-velbert/matsim-input/$(VERSION)
JAR := matsim-velbert-0.0.1-SNAPSHOT.jar
SNZ_SCENARIO := $(SHARED-SVN)/projects/matsim-velbert/matsim-input/matsim-velbert-snz-original
RAW_INPUT := $(SHARED-SVN)/projects/matsim-velbert/raw-input/
NETWORK := $(SHARED-SVN)/$(OUTPUT_FOLDER)/$(VERSION).network.xml.gz
TMP_POPULATION := $(SHARED-SVN)/$(OUTPUT_FOLDER)/tmp-25pct.plans.xml.gz
POPULATION := $(SHARED-SVN)/$(OUTPUT_FOLDER)/$(VERSION)-25pct.plans.xml.gz
VEHICLES := $(SHARED-SVN)/$(OUTPUT_FOLDER)/$(VERSION).vehicles.xml.gz
# build the application before we can do anything with it
$(JAR):
java --version
mvn package
# create network
$(NETWORK): $(JAR)
java -Xmx20G -jar $(JAR) prepare network --sharedSvn $(SHARED-SVN)
java -jar $(JAR) prepare pt --sharedSvn $(SHARED-SVN)
# do population stuff
$(POPULATION): $(JAR)
java -jar $(JAR) prepare trajectory-to-plans\
--name tmp\
--sample-size 0.25\
--population $(SNZ_SCENARIO)/population.xml.gz\
--attributes $(SNZ_SCENARIO)/personAttributes.xml.gz\
--output $(SHARED-SVN)/$(OUTPUT_FOLDER)\
# filter population to the area of NRW for the matsim class. If real stuies are run, this should propbably be taken out
java -jar $(JAR) prepare filter-population\
--sharedSvn $(SHARED-SVN)
java -jar $(JAR) prepare resolve-grid-coords\
$(TMP_POPULATION)\
--grid-resolution 500\
--input-crs EPSG:25832\
--landuse $(RAW_INPUT)/landuse/landuse.shp\
--output $(POPULATION)\
java -jar $(JAR) prepare downsample-population\
$(POPULATION)\
--sample-size 0.25\
--samples 0.1 0.01\
$(VEHICLES):
java -jar $(JAR) prepare vehicle-types\
--sharedSvn $(SHARED-SVN)
network: $(NETWORK)
population: $(POPULATION)
vehicles: $(VEHICLES)
# aggregate target
prepare: network population vehicles
rm $(TMP_POPOULATION)
@echo "Done"