Skip to content

Commit

Permalink
file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tschlenther committed May 16, 2022
1 parent 256c568 commit 9e3679a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/main/R/analysis/mode-analysis-spatial.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ library(readr)
library(dplyr)

#define input
runDir <- 'Z:/net/ils/schlenther/hamburg-v3.0/output/output-hh-base-1pct/'
runID <- "hamburg-v3.0-1pct-base"
runDir <- 'provide local file path to run output directory'
runID <- "hamburg-v3.0-25pct-base"

#runDir <- 'Z:/net/ils/schlenther/openHH-calibration/output/output-hv3-10-7-4-4-ff/ITERS/it.0/'
#runID <- "hamburg-v3.0-10pct-base.0.trips.csv.gz"


#read trips table
trips <- read_csv2(paste(runDir, runID, ".output_trips.csv.gz", sep = ""))

#trips <- read_csv2(paste(runDir, runID, sep = ""))

# contains a set of person Ids whose trips are to be considered.
Expand Down
7 changes: 4 additions & 3 deletions src/main/python/analysis/trips_distance_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# give the folder path:
runId = "hamburg-v3.0-25pct-base"
trips_info_folder = 'D:/ReallabHH/v3.0/25pct/hv3-25-7-1/'
trips_info_folder = 'provide run output directory'

#output file path
outputDir = trips_info_folder + 'analysis/'
Expand All @@ -27,7 +27,8 @@
# shared-svn/projects/matsim-hamburg/hamburg-v1/person2homeCoord.csv
# generated by java class org.matsim.analysis.GeneratePersonHomeLocation

person_home_location = pd.read_csv('D:/svn/shared-svn/projects/matsim-hamburg/hamburg-v3/hamburg-v3.0-person2HomeLocation.tsv', sep="\t")
#put in local file path to shared-svn/projects/matsim-hamburg/hamburg-v3/hamburg-v3.0-person2HomeLocation.tsv
person_home_location = pd.read_csv('private file from shared-svn needed. see comment in code', sep="\t")
print("... finished")

# %%
Expand All @@ -39,7 +40,7 @@
# %%
# put the shapefile of hamburg here, Download it from:
# /shared-svn/projects/realLabHH/data/hamburg_shapeFile/hamburg_merge/hamburg.shp
shapeFile = "D:/svn/shared-svn/projects/realLabHH/data/hamburg_shapeFile/hamburg_merge/hamburg.shp"
shapeFile = "private file from shared-svn needed. see comment in code"

print("reading shape file")
hamburg_map = gpd.read_file(shapeFile)
Expand Down

0 comments on commit 9e3679a

Please sign in to comment.