Skip to content

Commit

Permalink
Simwrapper: initial commit for simwrapper dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
ln0455686 committed Nov 6, 2023
1 parent 849ebbe commit 395b450
Show file tree
Hide file tree
Showing 12 changed files with 643 additions and 0 deletions.
74 changes: 74 additions & 0 deletions simwrapper/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
html {
font-size: 16px !important;
}

h2 {
font-size: 2rem;
}

#dashboard {
width: 80%;
margin: auto;
}

.up-link {
display: none;
}

.tabs ul li:last-child {
display: none;
}

.tabs.is-centered ul {
justify-content: left !important;
padding-left: 170px;
}

.row-scenarios .dash-card-frame {
margin-bottom: 0 !important;
}

img.project-logo {
position: absolute;
height: 48px;
}

.tabs a {
font-size: 1.4rem;
}

.project-header {
margin: 0 !important;
padding-bottom: 0 !important;
}

.project-footer {
padding: 0 !important;
margin-bottom: 0 !important;
}

footer {
background-color: #262626;
}

.logos img {
height: 45px;
}

footer .logos {
display: flex;
justify-content: left;
gap: 15px;
align-items: center;
padding: 36px 0 24px;
border-bottom: 1px solid #4b4b4b;
margin-bottom: 24px;
}

footer .menu {
display: flex;
align-items: flex-start;
justify-content: space-between;
padding-bottom: 36px;
color: #b2b2b2;
}
104 changes: 104 additions & 0 deletions simwrapper/dashboard-emissions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
header:
tab: "Emissions"
title_en: "Spatial distribution of air pollutants"
title_de: "Räumliche Verteilung von Luftschadstoffen"
description: "Emissionen und Kosten ausgewählter Luftschadstoffe"

layout:
costs:
- type: 'topsheet'
props:
configFile: "topsheet-all-emissions.yaml"

roadtypesAllowed-all:
- type: "links"
title: "roadtypesAllowed-all"
description: ""
width: 2
height: 8
props:
network: 'scenarios/output/runs-2023-09-01/10pct/roadtypesAllowed-all/roadtypesAllowed-all.output_network.xml.gz'
projection: EPSG:31468
showDifferences: true
sampleRate: 10
datasets:
csvFile: 'scenarios/output/runs-2023-09-01/10pct/roadtypesAllowed-all/analysis/airPollution/roadtypesAllowed-all.emissionsPerLink.csv'
csvBase: 'scenarios/output/baseCaseContinued-10pct/analysis/airPollution/berlin-v5.5-10pct.emissionsPerLink.csv'
display:
color:
dataset: csvFile
columnName: "CO2_TOTAL"
colorRamp:
ramp: Viridis
steps: 9
width:
dataset: csvFile
columnName: "CO2_TOTAL"
scaleFactor: 20000
- title: "Emission cost"
description: ""
type: 'topsheet'
props:
configFile: "topsheet-roadtypesAllowed-all-emissions.yaml"

roadtypesAllowed-motorway:
- type: "links"
title: "roadtypesAllowed-motorway"
description: ""
width: 2
height: 8
props:
network: 'scenarios/output/runs-2023-09-01/10pct/roadtypesAllowed-motorway/roadtypesAllowed-motorway.output_network.xml.gz'
projection: EPSG:31468
showDifferences: true
sampleRate: 10
datasets:
csvFile: 'scenarios/output/runs-2023-09-01/10pct/roadtypesAllowed-motorway/analysis/airPollution/roadtypesAllowed-motorway.emissionsPerLink.csv'
csvBase: 'scenarios/output/baseCaseContinued-10pct/analysis/airPollution/berlin-v5.5-10pct.emissionsPerLink.csv'
display:
color:
dataset: csvFile
columnName: "CO2_TOTAL"
colorRamp:
ramp: Viridis
steps: 9
width:
dataset: csvFile
columnName: "CO2_TOTAL"
scaleFactor: 20000
- title: "Emission cost"
description: ""
type: 'topsheet'
props:
configFile: "topsheet-roadtypesAllowed-motorway-emissions.yaml"

noDRT:
- type: "links"
title: "noDRT"
description: ""
width: 2
height: 8
props:
network: 'scenarios/output/runs-2023-09-01/10pct/noDRT/noDRT.output_network.xml.gz'
projection: EPSG:31468
showDifferences: true
sampleRate: 10
datasets:
csvFile: 'scenarios/output/runs-2023-09-01/10pct/noDRT/analysis/airPollution/noDRT.emissionsPerLink.csv'
csvBase: 'scenarios/output/baseCaseContinued-10pct/analysis/airPollution/berlin-v5.5-10pct.emissionsPerLink.csv'
display:
color:
dataset: csvFile
columnName: "CO2_TOTAL"
colorRamp:
ramp: Viridis
steps: 9
width:
dataset: csvFile
columnName: "CO2_TOTAL"
scaleFactor: 20000
- title: "Emission cost"
description: ""
type: 'topsheet'
props:
configFile: "topsheet-noDRT-emissions.yaml"
89 changes: 89 additions & 0 deletions simwrapper/dashboard-link-volumes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
header:
tab: "Link volumes"
title_en: "Spatial distribution of daily traffic volume"
title_de: "Räumliche Verteilung des Verkehrsaufkommens"
description: ""

layout:
costs:
- type: 'topsheet'
props:
configFile: "topsheet-all-link-volumes.yaml"

roadtypesAllowed-all:
- type: "links"
title: "roadtypesAllowed-all"
description: ""
width: 2
height: 8
props:
network: 'scenarios/output/runs-2023-09-01/10pct/roadtypesAllowed-all/roadtypesAllowed-all.output_network.xml.gz'
projection: EPSG:31468
showDifferences: true
sampleRate: 10
datasets:
csvFile: 'scenarios/output/runs-2023-09-01/10pct/roadtypesAllowed-all/roadtypesAllowed-all.output_events_dailyTrafficVolume_vehicles.tsv'
csvBase: 'scenarios/output/baseCaseContinued-10pct/berlin-v5.5-10pct.output_events_dailyTrafficVolume_vehicles.tsv'
display:
color:
dataset: csvFile
columnName: "agents"
colorRamp:
ramp: Viridis
steps: 9
width:
dataset: csvFile
columnName: "agents"
scaleFactor: 100

roadtypesAllowed-motorway:
- type: "links"
title: "roadtypesAllowed-motorway"
description: ""
width: 2
height: 8
props:
network: 'scenarios/output/runs-2023-09-01/10pct/roadtypesAllowed-motorway/roadtypesAllowed-motorway.output_network.xml.gz'
projection: EPSG:31468
showDifferences: true
sampleRate: 10
datasets:
csvFile: 'scenarios/output/runs-2023-09-01/10pct/roadtypesAllowed-motorway/roadtypesAllowed-motorway.output_events_dailyTrafficVolume_vehicles.tsv'
csvBase: 'scenarios/output/baseCaseContinued-10pct/berlin-v5.5-10pct.output_events_dailyTrafficVolume_vehicles.tsv'
display:
color:
dataset: csvFile
columnName: "agents"
colorRamp:
ramp: Viridis
steps: 9
width:
dataset: csvFile
columnName: "agents"
scaleFactor: 100

noDRT:
- type: "links"
title: "noDRT"
description: ""
width: 2
height: 8
props:
network: 'scenarios/output/runs-2023-09-01/10pct/noDRT/noDRT.output_network.xml.gz'
projection: EPSG:31468
showDifferences: true
sampleRate: 10
datasets:
csvFile: 'scenarios/output/runs-2023-09-01/10pct/noDRT/noDRT.output_events_dailyTrafficVolume_vehicles.tsv'
csvBase: 'scenarios/output/baseCaseContinued-10pct/berlin-v5.5-10pct.output_events_dailyTrafficVolume_vehicles.tsv'
display:
color:
dataset: csvFile
columnName: "agents"
colorRamp:
ramp: Viridis
steps: 9
width:
dataset: csvFile
columnName: "agents"
scaleFactor: 100
89 changes: 89 additions & 0 deletions simwrapper/dashboard-noise.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
header:
tab: "Noise"
title_en: "Spatial distribution of noise emissions"
title_de: "Räumliche Verteilung von Lärmemissionen"
description: "Lärmemissionen und -kosten"

layout:
costs:
- type: 'topsheet'
props:
configFile: "topsheet-all-noise.yaml"

roadtypesAllowed-all:
- type: "links"
title: "roadtypesAllowed-all"
description: ""
width: 2
height: 8
props:
network: 'scenarios/output/runs-2023-09-01/10pct/roadtypesAllowed-all/roadtypesAllowed-all.output_network.xml.gz'
projection: EPSG:31468
showDifferences: true
sampleRate: 10
datasets:
csvFile: 'scenarios/output/runs-2023-09-01/10pct/roadtypesAllowed-all/analysis/noise/noise-analysis/damages_receiverPoint_merged_xyt.csv.gz'
csvBase: 'scenarios/output/baseCaseContinued-10pct/analysis/noise/noise-analysis/damages_receiverPoint_merged_xyt.csv.gz'
display:
color:
dataset: csvFile
columnName: "damages_receiverPoint"
colorRamp:
ramp: Viridis
steps: 9
width:
dataset: csvFile
columnName: "damages_receiverPoint"
scaleFactor: 0.1

roadtypesAllowed-motorway:
- type: "links"
title: "roadtypesAllowed-motorway"
description: ""
width: 2
height: 8
props:
network: 'scenarios/output/runs-2023-09-01/10pct/roadtypesAllowed-motorway/roadtypesAllowed-motorway.output_network.xml.gz'
projection: EPSG:31468
showDifferences: true
sampleRate: 10
datasets:
csvFile: 'scenarios/output/runs-2023-09-01/10pct/roadtypesAllowed-motorway/analysis/noise/noise-analysis/damages_receiverPoint_merged_xyt.csv.gz'
csvBase: 'scenarios/output/baseCaseContinued-10pct/analysis/noise/noise-analysis/damages_receiverPoint_merged_xyt.csv.gz'
display:
color:
dataset: csvFile
columnName: "damages_receiverPoint"
colorRamp:
ramp: Viridis
steps: 9
width:
dataset: csvFile
columnName: "damages_receiverPoint"
scaleFactor: 0.1

noDRT:
- type: "links"
title: "noDRT"
description: ""
width: 2
height: 8
props:
network: 'scenarios/output/runs-2023-09-01/10pct/noDRT/noDRT.output_network.xml.gz'
projection: EPSG:31468
showDifferences: true
sampleRate: 10
datasets:
csvFile: 'scenarios/output/runs-2023-09-01/10pct/noDRT/analysis/noise/noise-analysis/damages_receiverPoint_merged_xyt.csv.gz'
csvBase: 'scenarios/output/baseCaseContinued-10pct/analysis/noise/noise-analysis/damages_receiverPoint_merged_xyt.csv.gz'
display:
color:
dataset: csvFile
columnName: "damages_receiverPoint"
colorRamp:
ramp: Viridis
steps: 9
width:
dataset: csvFile
columnName: "damages_receiverPoint"
scaleFactor: 0.1
13 changes: 13 additions & 0 deletions simwrapper/footer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<footer>
<div class="container">
<div class="logos">
<img src="https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries//de/duesseldorf/projects/komodnext/website/logos/TU.svg"/>
</div>

<div class="menu">
VSP / TU Berlin
© 2023 TU Berlin. <a href="https://vsp.berlin/impressum">Impressum</a>
</div>
</div>

</footer>
5 changes: 5 additions & 0 deletions simwrapper/simwrapper-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
hideLeftBar: true
fullWidth: true
footer_en: footer.md
footer_de: footer.md
css: custom.css
Loading

0 comments on commit 395b450

Please sign in to comment.